Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I5ad2c7a44dee2e19ab2576f206c69d94126a22b1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
nose is not actively maintained now and Django default test runner
seems to have enough features.
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.
And murano-dashboard using unittest instead of testtools.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I419e0e166ea88c3ab1203f35ffa00928cf94acb1
Depends-On: https://review.openstack.org/599156/
assertRaisesRegexp was renamed to assertRaisesRegex in Py3.2
For more details, please check:
https://docs.python.org/3/library/
unittest.html#unittest.TestCase.assertRaisesRegex
Change-Id: Ib5e52abde4cd642c3d214d3e29e8c55843983f2d
Horizon remove the inline_edit, So murano-dashboard should remove it too.
And this cause murano-dashboard tests failed.
Change-Id: I1a0e23255de3c620a2976c1a9043f26df21a9a57
Added new view for browsing through all deployments for all
environments in a tenant.
Change-Id: I64bce83be69a22e52994b7f51b96f3bdafbc6867
Partially-implements: blueprint improve-deployment-log-browsing
Closes-Bug: #1497261
Depends-On: I80c02a8cfd82260f097474bb512f693aa6734655
environments.test_tables.TestServicesTable.test_get_row_actions
throws an error when run in murano-dashboard-coverage-ubuntu-xenial.
The error happens because get_row_actions in the function under
testing contains an inner class that calls a Horizon function
that performs an API call, throwing the error:
'The default panel "environments" is not registered'.
This mocks out the Horizon function altogther, getting rid of the
error.
Change-Id: Id76b86f97024edb15fd9f093899649bd92fdd680
and Packages API.
In addition, renamed and moved the following test files for
better organization in the unit test directory:
- test_tables -> environments/test_tables
- test_packages -> packages/test_api
Lastly, updated packages/test_views to fix single failing
test in py27-mitaka-ubuntu-xenial.
Implements bp: murano-unit-test-coverage
Change-Id: I57813b0c68b4538616f6ecf03d2b92d535556645