Dalsi banky, prehled ve Swaggeru, /status a prazdne promenne
- zdroje rb, unicredit a air - nahore ve Swaggeru prehled nabizenych a nenabizenych bank s duvody - GET /status s prehledem vypadku stahovani u jednotlivych bank - prazdna promenna prostredi znamena vychozi hodnotu - popis stahovani v documentation/stahovani.md
This commit is contained in:
@@ -45,6 +45,15 @@ def test_health_answers_without_any_data(client: TestClient) -> None:
|
||||
assert response.json() == {"status": "ok"}
|
||||
|
||||
|
||||
def test_documentation_lists_offered_and_not_offered_banks(client: TestClient) -> None:
|
||||
description = client.get("/openapi.json").json()["info"]["description"]
|
||||
|
||||
assert "`/cnb`" in description
|
||||
assert "`/moneta`" in description
|
||||
assert "Revolut" in description
|
||||
assert "Česká spořitelna" in description
|
||||
|
||||
|
||||
def test_unknown_source_is_not_found(client: TestClient) -> None:
|
||||
assert client.get("/nonexistent").status_code == 404
|
||||
|
||||
|
||||
Reference in New Issue
Block a user