4.28.1
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
2023-05-10 11:00:05 +00:00
parent da4a8cc979
commit fd988d6ef0
15 changed files with 570 additions and 372 deletions

View File

@ -129,3 +129,12 @@ def test_change_name(flask_client):
assert r.json["name"] == "new name"
assert user.name == "new name"
def test_stats(flask_client):
login(flask_client)
r = flask_client.get("/api/stats")
assert r.status_code == 200
assert r.json == {"nb_alias": 1, "nb_block": 0, "nb_forward": 0, "nb_reply": 0}