Bin oui, la, preuve j'ai un soucis avec le test_past_question: Traceback (most recent call last): File "E:\Code\Django\BDC_POLL\bdc\polls\tests.py", line 22, in test_past_question self.assertQuerySetEqual(response.context["latest_question_list"], [question]) File "C:\Users\lucch\AppData\Roaming\Python\Python312-32\site-packages\django\test\testcases.py", line 1169, in assertQuerySetEqual return self.assertEqual(list(items), values, msg=msg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: Lists differ: [] != [] Second list contains 1 additional elements. First extra element 0: - [] + []
Et vous Bande de Codeurs ? Vous testez un peu ? 😉
Bin oui, la, preuve j'ai un soucis avec le test_past_question:
Traceback (most recent call last):
File "E:\Code\Django\BDC_POLL\bdc\polls\tests.py", line 22, in test_past_question
self.assertQuerySetEqual(response.context["latest_question_list"], [question])
File "C:\Users\lucch\AppData\Roaming\Python\Python312-32\site-packages\django\test\testcases.py", line 1169, in assertQuerySetEqual
return self.assertEqual(list(items), values, msg=msg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [] != []
Second list contains 1 additional elements.
First extra element 0:
- []
+ []
je vais intégrer les tests dans la chaîne de production. Merci bien
Génial !