yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #82340
[Bug 1873532] [NEW] pytest breaks all horizon plugin tests
Public bug reported:
https://review.opendev.org/#/c/711195/ introduced pytest usage in
horizon, but it breaks all horizon plugin tests as pytest is declared in
test-requirements.txt and horizon plugin test environments do not
install pytest.
Here is an example of heat-dashboard failure.
======================================================================
ERROR: heat_dashboard.test.tests.content.test_template_versions (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: heat_dashboard.test.tests.content.test_template_versions
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/home/user/src/opendev.org/openstack/heat-dashboard/heat_dashboard/test/tests/content/test_template_versions.py", line 17, in <module>
from heat_dashboard.test import helpers as test
File "/home/user/src/opendev.org/openstack/heat-dashboard/heat_dashboard/test/helpers.py", line 39, in <module>
from horizon.test import helpers as horizon_helpers
File "/home/user/src/opendev.org/openstack/heat-dashboard/.tox/lower-constraints/lib/python3.6/site-packages/horizon/test/helpers.py", line 45, in <module>
import pytest
ModuleNotFoundError: No module named 'pytest'
** Affects: horizon
Importance: Critical
Assignee: Akihiro Motoki (amotoki)
Status: Triaged
** Changed in: horizon
Status: New => Triaged
** Changed in: horizon
Importance: Undecided => Critical
** Changed in: horizon
Assignee: (unassigned) => Akihiro Motoki (amotoki)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1873532
Title:
pytest breaks all horizon plugin tests
Status in OpenStack Dashboard (Horizon):
Triaged
Bug description:
https://review.opendev.org/#/c/711195/ introduced pytest usage in
horizon, but it breaks all horizon plugin tests as pytest is declared
in test-requirements.txt and horizon plugin test environments do not
install pytest.
Here is an example of heat-dashboard failure.
======================================================================
ERROR: heat_dashboard.test.tests.content.test_template_versions (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: heat_dashboard.test.tests.content.test_template_versions
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/home/user/src/opendev.org/openstack/heat-dashboard/heat_dashboard/test/tests/content/test_template_versions.py", line 17, in <module>
from heat_dashboard.test import helpers as test
File "/home/user/src/opendev.org/openstack/heat-dashboard/heat_dashboard/test/helpers.py", line 39, in <module>
from horizon.test import helpers as horizon_helpers
File "/home/user/src/opendev.org/openstack/heat-dashboard/.tox/lower-constraints/lib/python3.6/site-packages/horizon/test/helpers.py", line 45, in <module>
import pytest
ModuleNotFoundError: No module named 'pytest'
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1873532/+subscriptions
Follow ups