feat: cache downloaded public keys via httpx-cache

This commit is contained in:
cătălin 2023-05-13 11:12:14 +02:00
commit d37bffdc51
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
6 changed files with 193 additions and 77 deletions

View file

@ -20,12 +20,6 @@ def test_load_from_file(notebooks_path: Path, settings_file_path: Path):
assert settings.notebooks_root_path == notebooks_path
def test_load_from_non_xdg_home_config_raises_file_not_found_error(fs):
path = Path("~/.config").expanduser()
with pytest.raises(FileNotFoundError, match=f"File {path} does not exist"):
load_from_file()
def test_load_from_existing_standard_file(settings_file_path: Path, settings: Settings):
standard_settings = load_from_file()
assert standard_settings.notebooks_root_path == settings.notebooks_root_path