Skip to content

Commit

Permalink
test: Use config for settings file path
Browse files Browse the repository at this point in the history
The settings file path is now dynamically retrieved from the config file, making it easier to configure and maintain.
  • Loading branch information
RedAtman committed Aug 3, 2024
1 parent 8ee3ae2 commit 2951f3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
from unittest import TestCase

from _config import CONFIG
from utils.tools import Json2Obj as Settings


Expand All @@ -11,7 +12,7 @@

class TestSettings(TestCase):
def test_settings(self):
settings = Settings("simplenote.sublime-settings")
settings = Settings(CONFIG.SIMPLENOTE_SETTINGS_FILE_PATH)
logger.info(settings)
logger.info(settings.username)
logger.info(settings.get("username"))
Expand Down

0 comments on commit 2951f3c

Please sign in to comment.