Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move zgw-consumers-oas import to related function #50

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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