FAIL: test_Intervenant_doublon (gestion_diffusables.test_models.dataBaseTest)
======================================================================
FAIL: test_Intervenant_doublon (gestion_diffusables.test_models.dataBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.5/dist-packages/django/db/backends/sqlite3/base.py", line 337, in execute
return Database.Cursor.execute(self, query, params)
sqlite3.IntegrityError: UNIQUE constraint failed: gestion_diffusables_intervenant.nom
The above exception was the direct cause of the following exception:
django.db.utils.IntegrityError: UNIQUE constraint failed: gestion_diffusables_intervenant.nom
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./gestion_diffusables/test_models.py", line 28, in test_Intervenant_doublon
url='http://www.ninjatune.net')
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python3.5/dist-packages/django/test/testcases.py", line 604, in _assert_raises_message_cm
self.assertIn(expected_message, str(cm.exception))
AssertionError: 'UNIQUE constraint failed: gestion_radio_intervenant.nom' not found in 'UNIQUE constraint failed: gestion_diffusables_intervenant.nom'
Edited by Grégory DAVID