refactor: make webspeiseplan fetching explicit

This commit is contained in:
Hadrian Burkhardt
2026-05-01 00:13:33 +00:00
parent 7720002d30
commit e9b7866bb1
3 changed files with 61 additions and 20 deletions
+12
View File
@@ -0,0 +1,12 @@
# -*- encoding: utf-8 -*-
from stw_potsdam.swp_webspeiseplan_api import SWPWebspeiseplanAPI
# pytest fixtures are linked via parameter names of test methods
# pragma pylint: disable=unused-import,unused-argument,redefined-outer-name
from tests.stub_api import api_offline
def test_api_init_does_not_fetch(api_offline):
"""Creating the API client does not perform network requests."""
SWPWebspeiseplanAPI()