Commit Graph

6 Commits

Author SHA1 Message Date
Thomas Goirand 81195976cd Django 3.2 support
This patch fixes a few issues regarding Django 3.2 support.

Closes-Bug: #1944523
Co-Author: Daniele Mazzocchio <daniele.mazzocchio@infomaniak.com>
Co-Author: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I1d906e2d910b25a79acfc13b7f3d890476ee301e
2021-09-23 02:23:20 +09:00
Sean McGinnis 22efa8fd7f Use unittest.mock instead of third party mock
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>
2020-04-20 03:54:03 -07:00
zhurong 4985bfa010 Switch test runner to django default runner
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/
2018-10-09 02:22:08 +00:00
wangqi e98cd6cd0c Replace assertRaisesRegexp with assertRaisesRegex
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
2018-04-23 02:45:22 +00:00
Aleksey Nakoryakov 93d8a1e160 Show resource usages for application
Show them in the description section right under the Flavor field
title (as quota usages + predicted increment progress bar).

Co-Authored-By: Timur Sufiev <tsufiev@gmail.com>
Co-Authored-By: Artem Tiumentcev <darland.maik@gmail.com>
Change-Id: I842cbce209ea90ab715d2e50824296a19c202a76
2018-01-17 04:26:25 +00:00
Felipe Monteiro 40ebeaf01a Increase unit test coverage for muranodashboard Dynamic UI Forms.
implements bp: murano-unit-test-coverage

Change-Id: I0ba048b9d1730fec3dae43e7b61260a7b3693548
2016-11-23 11:31:49 -05:00