[Bug 1948934] Re: [Victoria] Backported test requires newer ddt than included in test-requirements.txt
Sofia Enriquez
1948934 at bugs.launchpad.net
Wed Oct 27 14:22:41 UTC 2021
** Changed in: cinder
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1948934
Title:
[Victoria] Backported test requires newer ddt than included in test-
requirements.txt
Status in Cinder:
In Progress
Status in Ubuntu Cloud Archive:
New
Status in Ubuntu Cloud Archive victoria series:
In Progress
Bug description:
test-requirements.txt requires ddt>=1.2.1 ; however, 17.2.0 includes a
test backport
(cinder/tests/unit/volume/flows/test_create_volume_flow.py) that uses
a module name that doesn't exist in DDT until 1.4.0
(https://github.com/datadriventests/ddt/commit/6bf51b5d7887049eda580932643a5408ca0f5e3f)
Running the unit tests results in the following traceback:
=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: cinder.tests.unit.volume.flows.test_create_volume_flow
Traceback (most recent call last):
File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/build/cinder-17.2.0/cinder/tests/unit/volume/flows/test_create_volume_flow.py", line 1258, in <module>
@ddt.ddt(testNameFormat=ddt.TestNameFormat.INDEX_ONLY)
AttributeError: module 'ddt' has no attribute 'TestNameFormat'
To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1948934/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list