Commit Graph

12 Commits

Author SHA1 Message Date
Corey Bryant d956d059f9 Django 4.x: Replace removed features
force_text(), ugettext_lazy(), ungettext_lazy(), urlquote_plus()
and is_ajax() are removed in 4.0.
https: //docs.djangoproject.com/en/4.0/releases/4.0/

Co-Authored-By: manchandavishal <manchandavishal143@gmail.com>

Change-Id: I9e43926cc3011b8b7321bbec59bebe915502eb4a
2022-12-01 23:05:33 +05:30
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 3cb13c6c26 Fix py27 UT gate
1.Fix TypeError: 'Mock' object is not iterable error
2.import openstack_dashboard.test.settings

Change-Id: I9f2b640b1d58bc4f3f559458d9eed92c9594e686
2019-07-31 07:32:12 +00: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
Paul Bourke e3ff7bc00f Fix ValueError in environment details page
Deploy an environment 'foo', then go the Environments->foo->Deployment
History->Show Details. Horizon throws the error 'ValueError: Need 2
values to unpack in for loop; got 1.' Same fix that was provided for bug
1703197 applies here.

Change-Id: I09bac0f2d5197482cf8bc034099a2afeb5db82c2
Closes-Bug: #1724571
2017-10-18 14:07:08 +01:00
zhurong ecb019b58b Fix create environment TypeError
Now create environment give the error:
TypeError: get_form() takes exactly 2 arguments (1 given)

This patch fix this.

Change-Id: I4833b9c13249d547a91f13094b5764f788014dfb
Closes-Bug: #1703174
2017-07-14 08:59:08 +08:00
zhurong 733df90b6f Fix ValueError in services details page
Deploy a environment, then go the environment details page,
click the services name link, will gives the error:
ValueError: Need 2 values to unpack in for loop; got 1.

This patch fix this error.

Change-Id: Id8c601b20eb9159d580f2e8fbfb1ee3967a00784
Closes-bug: #1703197
2017-07-09 20:57:13 +08:00
Felipe Monteiro 9f72d2fb19 Improve log browsing for deployments.
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
2017-04-24 20:01:14 +01:00
Jenkins 4db649da47 Merge "Fix passing session id to Update Metadata link in Env and Comps tables" 2016-12-16 03:18:53 +00:00
Felipe Monteiro 11ba34e3c6 Fixes unit tests throwing errors, related to Horizon function.
Currently, 11 unit tests are failing because Horizon
changed some of its behavior related to how pagesizes are
calculated from request objects.

This is the commit in Horizon that appears to have caused things
to break in these unit tests:
https://review.openstack.org/#/c/155939/13/horizon/utils/functions.py

This fix mocks out the function in Horizon that does the pagesize
calculation.

Change-Id: I983e83033b8eab25f79f505d2e57ef1e6b86873b
Closes-Bug: #1650029
2016-12-14 16:42:38 -05:00
Timur Sufiev 87cf0e7dae Fix passing session id to Update Metadata link in Env and Comps tables
Change-Id: I7ce67563c216956d166547d853b154e75352dd9a
2016-12-13 13:11:37 +03:00
Felipe Monteiro 8df43208f4 Increase unit test coverage for muranodashboard Env Views.
Implements bp: murano-unit-test-coverage

Change-Id: Ib0ccdacde3eca9aee740136decf8b66d962ddcf3
Depends-On: I2333a5047b8eafec1cfc80aff7858ffea4813e17
2016-11-11 17:30:15 -05:00