mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
13 lines
292 B
Python
13 lines
292 B
Python
import requests
|
|
|
|
from akkudoktoreos.config import prediction_hours
|
|
|
|
|
|
def test_server(server):
|
|
"""
|
|
Test the server
|
|
"""
|
|
result = requests.get(f"{server}/gesamtlast_simple?year_energy=2000&")
|
|
assert result.status_code == 200
|
|
assert len(result.json()) == prediction_hours
|