refactor(easel): add weather routes

This commit is contained in:
2024-08-11 21:14:01 +03:00
parent 72fd378c40
commit 6db33ca669
13 changed files with 101 additions and 97 deletions

View File

@@ -1,5 +1,4 @@
import json
from pathlib import Path
class MockData:
@@ -11,5 +10,5 @@ class MockData:
return (self._data_dir / f"{key}.html").read_text()
def get_json(self, key: str) -> dict:
data = json.loads((Path(__file__).parent / f"data/{key}.json").read_text())
data = json.loads((self._data_dir / f"{key}.json").read_text())
return data