Handle closed-time typos from SWP API and update local dev setup (#32)

* updated dependencies, fixed "geschlossen" parsing

* httpretty.core warning patch

---------

Co-authored-by: Hadrian Burkhardt <hadrian.burkhardt@gmx.de>
This commit is contained in:
2026-02-18 23:00:09 +01:00
committed by GitHub
parent a31cfd4f4e
commit 68e092b06e
14 changed files with 1178 additions and 1 deletions
+5 -1
View File
@@ -38,6 +38,10 @@ requires_online_api = pytest.mark.skipif(
def test_retrieval(canteen):
try:
with app.app_context(), app.test_request_context():
canteen_xml_feed(canteen.key)
response = canteen_xml_feed(canteen.key)
assert response.status_code == 200
data = response.get_data(as_text=True)
assert "<openmensa" in data
assert "<canteen>" in data
except json.JSONDecodeError:
pytest.xfail('JSON endpoint returned garbage (issue #6)')