Simulation sans liste blanche : toutes les conversations (la liste ne s'impose qu'en écriture)
tests / tests (push) Successful in 52s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-09 09:14:04 +01:00
1 parent 8b1908c8ac
commit 337933cb62
2 files changed
+9 -2

No files matched your search

+5
View File
@@ -76,6 +76,11 @@ class TestConfig(unittest.TestCase):
self.assertIsNone(cfg().autorisees)
self.assertEqual(cfg(ALLOWED_CONVERSATION_IDS="c1, c2").autorisees, {"c1", "c2"})
def test_simulation_sans_liste_blanche_traite_tout(self):
self.assertIsNone(Config.depuis_env(ENV).autorisees)
ld = FauxLD({"c1": []}, ecrire=False)
self.assertEqual(traiter(ld, Config.depuis_env({**ENV, "CONVERSATION": "c1"}), diag_fait), {"c1": "fait"})
def test_liste_blanche_mal_formee(self):
for v in (",", " , ", ",,"):
with self.assertRaises(ValueError, msg=v):