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)
Reviewed: https:/ /review. opendev. org/c/openstack /murano/ +/805514 /opendev. org/openstack/ murano/ commit/ 8ec727dfc6bbfba 3a9f1260110b029 7c557e1295
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit 8ec727dfc6bbfba 3a9f1260110b029 7c557e1295
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.ArgumentErr or: subject table for an INSERT, UPDATE or Instance' id='...'>
DELETE expected, got <MagicMock name='models.
Closes-Bug: #1938676 83bd35b5599cf8c a41968dde93 d68c35623010c3f 57d58b975d)
Change-Id: I5268132018e0a2
(cherry picked from commit 2800f0b62c2936c