Comment 7 for bug 1938676

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/murano/+/805514
Committed: https://opendev.org/openstack/murano/commit/8ec727dfc6bbfba3a9f1260110b0297c557e1295
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 8ec727dfc6bbfba3a9f1260110b0297c557e1295
Author: Takashi Kajinami <email address hidden>
Date: Mon Aug 2 17:20:27 2021 +0900

    Fix broken unit test

    This change mocks sqlalchemy.update during unit tests properly to avoid
    the following error.

    sqlalchemy.exc.ArgumentError: subject table for an INSERT, UPDATE or
    DELETE expected, got <MagicMock name='models.Instance' id='...'>

    Closes-Bug: #1938676
    Change-Id: I5268132018e0a283bd35b5599cf8ca41968dde93
    (cherry picked from commit 2800f0b62c2936cd68c35623010c3f57d58b975d)