Skip to content

Commit

Permalink
test: Case-sensitivity in settings file path
Browse files Browse the repository at this point in the history
The settings file path in the test was incorrectly using a capitalized filename. This commit corrects the case sensitivity, ensuring the test accurately reflects the expected configuration.
  • Loading branch information
RedAtman committed Jul 30, 2024
1 parent 52f8bf2 commit 2072f68
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
from importlib import import_module
import logging
from typing import Any
from unittest import TestCase

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


import_module("utils.logger.init")
logger = logging.getLogger()
logger.info(CONFIG)

_note_kwargs: dict[str, Any] = {
"tags": [],
"deleted": False,
"systemTags": [],
"content": "SimplenoteTitle\n\n\nSimplenoteBody",
}

_d_kwargs: dict[str, Any] = {
"d": _note_kwargs,
"id": "123abc",
"v": 2,
}


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

0 comments on commit 2072f68

Please sign in to comment.