Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 3 additions & 6 deletions integration_tests/test_pydantic.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import importlib.util

import pytest
import requests

from integration_tests.helpers.http_methods_helpers import json_post

BASE_URL = "http://127.0.0.1:8080"

try:
import pydantic

_HAS_PYDANTIC = True
except ImportError:
_HAS_PYDANTIC = False
_HAS_PYDANTIC = importlib.util.find_spec("pydantic") is not None

pytestmark = pytest.mark.skipif(not _HAS_PYDANTIC, reason="pydantic not installed")

Expand Down
2 changes: 1 addition & 1 deletion robyn/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional, Tuple, TypedDict, is_typeddict

from robyn.pydantic_support import get_pydantic_openapi_schema, is_pydantic_model
from robyn.responses import html
from robyn.robyn import QueryParams, Response
from robyn.pydantic_support import get_pydantic_openapi_schema, is_pydantic_model
from robyn.types import Body, JsonBody

_logger = logging.getLogger(__name__)
Expand Down
Loading