You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stestr --test-path=./nova/tests/functional run -n nova//tests/functional/api_sample_tests/test_hosts.py
Expected behavior and actual behavior
This should have run the tests in the file. Instead, it exited with this error:
==============================
Failed 1 tests - output below:
==============================
unittest.loader._FailedTest.
----------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
ImportError: Failed to import test module:
Traceback (most recent call last):
File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
ModuleNotFoundError: No module named 'nova.'
nova//tests/functional/api_sample_tests/test_hosts.py normalizes to nova/tests/functional/api_sample_tests/test_hosts.py (at least in Vim, Bash, and elsewhere) and stestr should be doing the same.
Steps to reproduce the problem
Per above.
Specifications like the version of the project, operating system, or hardware
Issue description
I attempted to run all tests in a file using the following:
which run the following under the hood:
Expected behavior and actual behavior
This should have run the tests in the file. Instead, it exited with this error:
nova//tests/functional/api_sample_tests/test_hosts.py
normalizes tonova/tests/functional/api_sample_tests/test_hosts.py
(at least in Vim, Bash, and elsewhere) and stestr should be doing the same.Steps to reproduce the problem
Per above.
Specifications like the version of the project, operating system, or hardware
n/a
System information
stestr --version
): stestr 4.1.0python --version
): Python 3.10.14pip freeze
): n/aAdditional information
None.
The text was updated successfully, but these errors were encountered: