Skip to content

Commit 8eafe2d

Browse files
authored
Update config path to match package name (#7)
1 parent c21796e commit 8eafe2d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

gitea_github_sync/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Config(BaseModel):
1313

1414

1515
def config_file_location() -> Path:
16-
return Path.home() / ".config" / "gitea-mirror" / "config.yml"
16+
return Path.home() / ".config" / "gitea-github-sync" / "config.yml"
1717

1818

1919
def load_config(config_location: Path = config_file_location()) -> Config:

tests/test_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ def test_load_config_bad_file(mock_file_open: MagicMock) -> None:
4444
load_config()
4545

4646
mock_file_open.assert_called_once_with(DEFAULT_CONFIG_FILE_PATH)
47+
48+
49+
def test_config_file_location() -> None:
50+
result = config_file_location()
51+
assert result == Path.home() / ".config" / "gitea-github-sync" / "config.yml"

0 commit comments

Comments
 (0)