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
factory-boy just released a new version and it looks like we might need to adjust unit tests due to breaking changes.
======================================================================
ERROR: api.tests.tests_file (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: api.tests.tests_file
Traceback (most recent call last):
File "/usr/lib64/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib64/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/home/dmsimard/dev/git/ansible-community/ara/ara/api/tests/tests_file.py", line 23, in <module>
from ara.api.tests import factories, utils
File "/home/dmsimard/dev/git/ansible-community/ara/ara/api/tests/factories.py", line 36, in <module>
class PlaybookFactory(factory.DjangoModelFactory):
AttributeError: module 'factory' has no attribute 'DjangoModelFactory'
What should be happening ?
Unit tests should not be failing :)
The text was updated successfully, but these errors were encountered:
factory-boy just released a new 3.0 (and 3.0.1) version and it breaks
unit tests:
AttributeError: module 'factory' has no attribute 'DjangoModelFactory'
Pin to <3.0 which is currently 2.12.0 while we figure it out.
Related: #155
Change-Id: Id987e126a05cf084e6c9ed18884dad11c81d1203
What component is this about ?
unit tests (i.e,
tox -e py3
)What is happening ?
factory-boy just released a new version and it looks like we might need to adjust unit tests due to breaking changes.
What should be happening ?
Unit tests should not be failing :)
The text was updated successfully, but these errors were encountered: