Commit Graph

7 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 7395b40177 Add a mock request for Tab
Change-Id: I6e337008910f229dccc5185ac565b673845c3f4b
2019-01-24 18:28:25 +08: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
Artem Tiumentcev 9806d7487f Adjust stringified dates to the local timezone
Fetch local timezone from session variable 'django_timezone'. This
setting can be either set in Horizon manually or it defaults to the
value of setting TIME_ZONE (with 'UTC' value as a default).

Change-Id: I6c0bbf7b0e0763bd238ab9fa9c4c75e3fdf02fbd
2017-07-07 12:24:10 +03:00
Jose Phillips 0e855a5cbf Murano-Dashboard Wrong instance name on Component details tab.
This patch find the instances names and stack names on a accurate way
based on nova openstackId instead of using instance name.

Change-Id: I6d71390afbb93b6b897219a4ac8d25f361897a6d
Closes-Bug: #1648227
2016-12-15 18:45:19 -05:00
Felipe Monteiro 79ddf808cf Increase unit test coverage for muranodashboard Env Tabs.
Implements bp: murano-unit-test-coverage

Change-Id: I783cc431569b65bf511fe90a8b3ff0755fa78d5e
Depends-On: Ifd5d4912eb93c7375ae65f1c1bd12eee78959a67
2016-11-14 17:04:25 -05:00