mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-12-19 21:53:41 +00:00
Add web status route (#13)
* add status route * typed status and get status at the start of application
This commit is contained in:
8
tests/ahriman/models/test_internal_status.py
Normal file
8
tests/ahriman/models/test_internal_status.py
Normal file
@ -0,0 +1,8 @@
|
||||
from ahriman.models.internal_status import InternalStatus
|
||||
|
||||
|
||||
def test_internal_status_from_json_view(internal_status: InternalStatus) -> None:
|
||||
"""
|
||||
must construct same object from json
|
||||
"""
|
||||
assert InternalStatus.from_json(internal_status.view()) == internal_status
|
||||
Reference in New Issue
Block a user