Skip to content

Commit

Permalink
Fixed session data path to be at /config (#225)
Browse files Browse the repository at this point in the history
* Fixed session data path to be at /config

* Fixed failing test
  • Loading branch information
mandarons authored Jun 24, 2024
1 parent e13d266 commit c5fe1eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c5fe1eb

Please sign in to comment.