refactor(easel): add weather routes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user