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
Maybe there was a unique together on the fk to state previously?
Look at the history of the Locality model definition
Answers:
Yes, Locality had a unique together previously and that had been commented out 5 years ago. The test was never updated so it appears the test has been broken since then.
Run python example_site/manage.py test example_site/
Creating test database for alias 'default'...
............................F....
System check identified no issues (0 silenced).
FAIL: test_unique_name_state (address.tests.test_models.LocalityTestCase)
Traceback (most recent call last):
File "/home/runner/work/django-address/django-address/example_site/address/tests/test_models.py", line 101, in test_unique_name_state
self.assertRaises(IntegrityError, Locality.objects.create, name='Melbourne', state=self.au_vic)
AssertionError: IntegrityError not raised by create
Ran 33 tests in 0.080s
FAILED (failures=1)
Destroying test database for alias 'default'...
##[error]Process completed with exit code 1.
The text was updated successfully, but these errors were encountered: