Horizon plugin for OpenStack Orchestration (Heat)
Go to file
Andreas Jaeger 79ef24a784 Remove six usage (2/2)
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3,
convert six usage to Python 3 code.

This changes urllib usage.

mock.patch usage in heat_dashboard/test/tests/api/test_heat.py
is modified to cope with the mix usage of urllib from python3 (in
heat-dashboard) and six.moves.urllib (in heatclient).
In the case of the mix usage, patching urllib.request.urlopen() only
does not work as urllib.request.urlopen() is not called after
resolving a lazy loading in six and the resolved object is
six.moves.urllib.request is called. The previous code depends on
the behavior in heatclient read_url_content() and the method should
be mocked instead. Considering this, mocking in api/test_heat.py
is modified to mock direct methods called in the heat-dashboard code.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Icf3f889770242b02023fe22c405cfa2d823581a5
Needed-By: https://review.opendev.org/701743
2020-01-11 22:06:54 +01:00
devstack support py3 2018-05-03 10:10:01 +03:00
doc Merge "Generate PDF documentation" 2019-12-23 13:54:13 +00:00
heat_dashboard Remove six usage (2/2) 2020-01-11 22:06:54 +01:00
releasenotes Imported Translations from Zanata 2019-12-24 07:49:49 +00:00
.eslintignore Remove minified js 2018-03-08 10:58:55 +09:00
.eslintrc.js Add unittests for template generator angular 2017-10-26 09:55:53 +09:00
.gitignore Add support for OS::Swift::Container 2018-06-07 19:49:33 +09:00
.gitreview OpenDev Migration Patch 2019-04-19 19:29:01 +00:00
.zuul.yaml [ussuri][goal] Drop python 2.7 support and testing 2019-12-03 07:36:38 +00:00
CONTRIBUTING.rst Update all links in documents 2018-06-14 18:43:50 +09:00
HACKING.rst fix error url 2018-02-02 11:18:27 +08:00
LICENSE add initial files. 2017-10-06 14:46:17 +09:00
MANIFEST.in Ensure json files are provided in the package 2018-01-26 08:25:44 +00:00
README.rst Drop use of git.openstack.org 2019-05-22 16:37:13 +05:30
babel-django.cfg translation: drop babel extractor definitions 2019-12-27 02:02:58 +09:00
babel-djangojs.cfg translation: drop babel extractor definitions 2019-12-27 02:02:58 +09:00
bindep.txt Add heat-dashboard integration tests 2019-02-05 09:40:06 +02:00
karma.conf.js Replace embedded static files with XStatic-* 2018-07-09 16:02:37 +09:00
lower-constraints.txt Update hacking version 2019-03-27 14:00:03 +08:00
manage.py add initial files. 2017-10-06 14:46:17 +09:00
package.json Replace embedded static files with XStatic-* 2018-07-09 16:02:37 +09:00
requirements.txt Drop nose dependencies 2018-08-17 01:06:34 +09:00
setup.cfg [ussuri][goal] Drop python 2.7 support and testing 2019-12-03 07:36:38 +00:00
setup.py Updated from global requirements 2017-11-15 11:43:53 +00:00
test-requirements.txt Update hacking version 2019-03-27 14:00:03 +08:00
tox.ini Merge "Generate PDF documentation" 2019-12-23 13:54:13 +00:00

README.rst

Welcome to Heat Dashboard!

Heat dashboard is a horizon plugin for Heat.

Team and repository tags

image