Skip to content

Commit

Permalink
Add test for #206/#208
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jul 17, 2023
1 parent f770c71 commit 9369ba5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ def flush():
flush()


def test_default_config(backend_config_flush, monkeypatch):
monkeypatch.delenv("OPENEO_BACKEND_CONFIG")
config = get_backend_config()
assert config.id == "default"


def test_get_backend_config_lazy_cache(monkeypatch, tmp_path, backend_config_flush):
path = tmp_path / "myconfig.py"
content = """
Expand Down

0 comments on commit 9369ba5

Please sign in to comment.