From 87f2882c8698ddae2fe2ff5445dc1442c299d90d Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 19 Aug 2025 10:22:21 +0200 Subject: [PATCH] Update tests/test_utils_duo.py --- tests/test_utils_duo.py | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/tests/test_utils_duo.py b/tests/test_utils_duo.py index 5cc2fec44..b03557c75 100644 --- a/tests/test_utils_duo.py +++ b/tests/test_utils_duo.py @@ -132,23 +132,4 @@ class TestSecrets: # Vérifie que le fichier n'a pas été modifié secrets_file = setup_env / ".slic" / "secrets" with open(secrets_file, "rb") as f: - assert pickle.load(f) == {} - -def test_list_pgroups(): - """Return the list of available pgroups (IDs and names).""" - KEY = "fried-BRAN-gorgon-togo-fledge-mummify-dustbin-advert" - headers = {"x-api-secret": KEY} - - resp = requests.get(URL, headers=headers) - resp.raise_for_status() - - data = resp.json() - - # Les structures d’API peuvent varier, tu adaptes selon la vraie réponse - groups = [] - for g in data: - group_id = g.get("id") or g.get("pgroup") or "unknown" - name = g.get("name") or g.get("comments") or "unnamed" - groups.append((group_id, name)) - print("GRRRRRRRRP : ", groups) - return groups \ No newline at end of file + assert pickle.load(f) == {} \ No newline at end of file