diff options
| author | Max Nanis | 2026-09-01 10:43:29 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-01 10:43:29 -0700 |
| commit | 89ed44f466dc9a93d6f85931fb6eea0e9cbd27f6 (patch) | |
| tree | 8bcce59aa74271e38f056c954ee3e8457dae241a /tests/models/custom_types | |
| parent | d19438ec4ccbbe4415c286c9ae89e3e5706ac553 (diff) | |
| download | generalresearch-89ed44f466dc9a93d6f85931fb6eea0e9cbd27f6.tar.gz generalresearch-89ed44f466dc9a93d6f85931fb6eea0e9cbd27f6.zip | |
working through circular imports, removing __init__ loaded Types / Definitions
Diffstat (limited to 'tests/models/custom_types')
| -rw-r--r-- | tests/models/custom_types/test_aware_datetime.py | 4 | ||||
| -rw-r--r-- | tests/models/custom_types/test_dsn.py | 4 | ||||
| -rw-r--r-- | tests/models/custom_types/test_uuid_str.py | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/tests/models/custom_types/test_aware_datetime.py b/tests/models/custom_types/test_aware_datetime.py index e8a5aa3..54a5d9b 100644 --- a/tests/models/custom_types/test_aware_datetime.py +++ b/tests/models/custom_types/test_aware_datetime.py @@ -2,12 +2,14 @@ from __future__ import annotations import logging from datetime import UTC, datetime +from typing import TYPE_CHECKING import pytest import pytz from pydantic import BaseModel, Field, ValidationError -from generalresearch.models.custom_types import AwareDatetimeISO +if TYPE_CHECKING: + from generalresearch.models.custom_types import AwareDatetimeISO logger = logging.getLogger() diff --git a/tests/models/custom_types/test_dsn.py b/tests/models/custom_types/test_dsn.py index d8c7c53..2aae579 100644 --- a/tests/models/custom_types/test_dsn.py +++ b/tests/models/custom_types/test_dsn.py @@ -1,12 +1,14 @@ from __future__ import annotations +from typing import TYPE_CHECKING from uuid import uuid4 import pytest from pydantic import BaseModel, Field, MySQLDsn, ValidationError from pydantic_core import Url -from generalresearch.models.custom_types import DaskDsn, SentryDsn +if TYPE_CHECKING: + from generalresearch.models.custom_types import DaskDsn, SentryDsn # --- Test Pydantic Models --- diff --git a/tests/models/custom_types/test_uuid_str.py b/tests/models/custom_types/test_uuid_str.py index 02e6a8b..92489a0 100644 --- a/tests/models/custom_types/test_uuid_str.py +++ b/tests/models/custom_types/test_uuid_str.py @@ -1,11 +1,13 @@ from __future__ import annotations +from typing import TYPE_CHECKING from uuid import uuid4 import pytest from pydantic import BaseModel, Field, ValidationError -from generalresearch.models.custom_types import UUIDStr +if TYPE_CHECKING: + from generalresearch.models.custom_types import UUIDStr class UUIDStrModel(BaseModel): |
