From c5fe1ebcb843760d3550d5b05124014aed4ef432 Mon Sep 17 00:00:00 2001 From: Mandar Patil Date: Mon, 24 Jun 2024 09:04:18 -0700 Subject: [PATCH] Fixed session data path to be at /config (#225) * Fixed session data path to be at /config * Fixed failing test --- src/__init__.py | 2 +- tests/test_sync.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index a63a6e4b4..2a0e6ae1c 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -21,7 +21,7 @@ DEFAULT_CONFIG_FILE_PATH = os.path.join( os.path.dirname(os.path.dirname(__file__)), DEFAULT_CONFIG_FILE_NAME ) -DEFAULT_COOKIE_DIRECTORY = "session_data" +DEFAULT_COOKIE_DIRECTORY = "/config/session_data" warnings.filterwarnings("ignore", category=DeprecationWarning) diff --git a/tests/test_sync.py b/tests/test_sync.py index 05f044d1c..cb287148e 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -59,7 +59,7 @@ def test_sync( if ENV_ICLOUD_PASSWORD_KEY in os.environ: del os.environ[ENV_ICLOUD_PASSWORD_KEY] self.assertIsNone(sync.sync()) - self.assertTrue(os.path.isdir("./session_data")) + self.assertTrue(os.path.isdir("/config/session_data")) @patch(target="keyring.get_password", return_value=data.VALID_PASSWORD) @patch(