diff options
| author | Max Nanis | 2026-09-01 15:36:12 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-01 15:36:12 -0700 |
| commit | 186f5e47536673fde05aa6c3e0025f915e77e6a0 (patch) | |
| tree | 35a2383551b566be950b54ad663434931ec2f84c /tests/models | |
| parent | 6469e7e55a53cfe18bd015b3c455ecbbb550cbb9 (diff) | |
| download | generalresearch-186f5e47536673fde05aa6c3e0025f915e77e6a0.tar.gz generalresearch-186f5e47536673fde05aa6c3e0025f915e77e6a0.zip | |
Circular resolved. Working on GR Model tests
Diffstat (limited to 'tests/models')
| -rw-r--r-- | tests/models/custom_types/test_aware_datetime.py | 4 | ||||
| -rw-r--r-- | tests/models/custom_types/test_uuid_str.py | 4 | ||||
| -rw-r--r-- | tests/models/thl/test_product.py | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/tests/models/custom_types/test_aware_datetime.py b/tests/models/custom_types/test_aware_datetime.py index 54a5d9b..e8a5aa3 100644 --- a/tests/models/custom_types/test_aware_datetime.py +++ b/tests/models/custom_types/test_aware_datetime.py @@ -2,14 +2,12 @@ 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 -if TYPE_CHECKING: - from generalresearch.models.custom_types import AwareDatetimeISO +from generalresearch.models.custom_types import AwareDatetimeISO logger = logging.getLogger() diff --git a/tests/models/custom_types/test_uuid_str.py b/tests/models/custom_types/test_uuid_str.py index 92489a0..02e6a8b 100644 --- a/tests/models/custom_types/test_uuid_str.py +++ b/tests/models/custom_types/test_uuid_str.py @@ -1,13 +1,11 @@ from __future__ import annotations -from typing import TYPE_CHECKING from uuid import uuid4 import pytest from pydantic import BaseModel, Field, ValidationError -if TYPE_CHECKING: - from generalresearch.models.custom_types import UUIDStr +from generalresearch.models.custom_types import UUIDStr class UUIDStrModel(BaseModel): diff --git a/tests/models/thl/test_product.py b/tests/models/thl/test_product.py index a1b3688..446b59f 100644 --- a/tests/models/thl/test_product.py +++ b/tests/models/thl/test_product.py @@ -631,8 +631,6 @@ class TestProductFinancials: create_main_accounts() delete_df_collection(coll=ledger_collection) - from generalresearch.currency import USDCent - p1: Product = product_factory(business=gr_business) u1: User = user_factory(product=p1) bp_wallet = thl_ledger_manager.get_account_or_create_bp_wallet(product=p1) @@ -714,6 +712,8 @@ class TestProductFinancials: # -- Now pay them out... + from generalresearch.currency import USDCent + bp_payout_factory( product=p1, amount=USDCent(50), |
