Simulation sans liste blanche : toutes les conversations (la liste ne s'impose qu'en écriture)
tests / tests (push) Successful in 52s
tests / tests (push) Successful in 52s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b1908c8ac
commit
337933cb62
2 files changed
+9
-2
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user