Skip to content

Commit

Permalink
Move zgw-consumers-oas import to related function (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyBA authored Nov 29, 2024
1 parent d40f787 commit 4034941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vng_api_common/tests/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import yaml
from requests_mock import Mocker
from zgw_consumers_oas.schema_loading import read_schema

DEFAULT_PATH_PARAMETERS = {"version": "1"}

Expand Down Expand Up @@ -76,6 +75,8 @@ def get_validation_errors(response, field, index=0):
def mock_service_oas_get(
mock: Mocker, url: str, service: str, oas_url: str = ""
) -> None:
from zgw_consumers_oas.schema_loading import read_schema

if not oas_url:
oas_url = f"{url}schema/openapi.yaml?v=3"

Expand Down

0 comments on commit 4034941

Please sign in to comment.