File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Config(BaseModel):
1313
1414
1515def 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
1919def load_config (config_location : Path = config_file_location ()) -> Config :
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments