From 8105757ae20ba2b563e6f368b92e61bec706aa52 Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Mon, 16 Dec 2024 11:34:18 +0100 Subject: [PATCH] reset sessions settings in test --- tests/test_api_save_link.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_api_save_link.py b/tests/test_api_save_link.py index e7eb4f5..6539c37 100644 --- a/tests/test_api_save_link.py +++ b/tests/test_api_save_link.py @@ -9,6 +9,9 @@ def test_api_save_link(monkeypatch): "EDUTAP_WALLET_GOOGLE_CREDENTIALS_FILE", str(ROOT_DIR / "tests" / "data" / "credentials_fake.json"), ) + from edutap.wallet_google.session import session_manager + + del session_manager._settings from edutap.wallet_google import api @@ -27,3 +30,5 @@ def test_api_save_link(monkeypatch): link == "https://pay.google.com/gp/v/save/eyJ0eXAiOiAiSldUIiwgImFsZyI6ICJSUzI1NiIsICJraWQiOiAiMTIzNDU2Nzg5MGFiY2RlZjEyMzQ1Njc4OTBhYmNkZWYxMjM0NTY3OCJ9.eyJpc3MiOiAiZWR1dGFwLXRlc3QtZXhhbXBsZUBzb2RpdW0tcmF5LTEyMzQ1Ni5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsICJhdWQiOiAiZ29vZ2xlIiwgInR5cCI6ICJzYXZldHRvd2FsbGV0IiwgImlhdCI6ICIiLCAicGF5bG9hZCI6IHsib2ZmZXJPYmplY3RzIjogW3siaWQiOiAidGVzdC0yLmVkdXRhcC5ldSIsICJjbGFzc0lkIjogInRlc3QtY2xhc3MtMS5lZHV0YXAuZXUiLCAic3RhdGUiOiAiU1RBVEVfVU5TUEVDSUZJRUQiLCAiaGFzTGlua2VkRGV2aWNlIjogZmFsc2UsICJkaXNhYmxlRXhwaXJhdGlvbk5vdGlmaWNhdGlvbiI6IGZhbHNlLCAibm90aWZ5UHJlZmVyZW5jZSI6ICJOT1RJRklDQVRJT05fU0VUVElOR1NfRk9SX1VQREFURVNfVU5TUEVDSUZJRUQifV0sICJnZW5lcmlj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