Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
elic-eon committed Oct 28, 2024
1 parent af8171b commit fb09e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/openapi/test_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest
import requests
from pydantic import HttpUrl
from pydantic import FilePath, HttpUrl

from metaphor.common.base_config import OutputConfig
from metaphor.common.event_util import EventUtil
Expand All @@ -15,7 +15,7 @@
def get_dummy_config(base_url: str, path: str = "", url: str = ""):
return OpenAPIRunConfig(
base_url=HttpUrl(base_url),
openapi_json_path=path or None,
openapi_json_path=FilePath(path) if path else None,
openapi_json_url=HttpUrl(url) if url else None,
output=OutputConfig(),
)
Expand Down

0 comments on commit fb09e48

Please sign in to comment.