aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMax Nanis2026-09-01 15:36:12 -0700
committerMax Nanis2026-09-01 15:36:12 -0700
commit186f5e47536673fde05aa6c3e0025f915e77e6a0 (patch)
tree35a2383551b566be950b54ad663434931ec2f84c /tests
parent6469e7e55a53cfe18bd015b3c455ecbbb550cbb9 (diff)
downloadgeneralresearch-186f5e47536673fde05aa6c3e0025f915e77e6a0.tar.gz
generalresearch-186f5e47536673fde05aa6c3e0025f915e77e6a0.zip
Circular resolved. Working on GR Model tests
Diffstat (limited to 'tests')
-rw-r--r--tests/managers/thl/test_ledger/test_lm_accounts.py4
-rw-r--r--tests/models/custom_types/test_aware_datetime.py4
-rw-r--r--tests/models/custom_types/test_uuid_str.py4
-rw-r--r--tests/models/thl/test_product.py4
4 files changed, 6 insertions, 10 deletions
diff --git a/tests/managers/thl/test_ledger/test_lm_accounts.py b/tests/managers/thl/test_ledger/test_lm_accounts.py
index cdef99a..57a2261 100644
--- a/tests/managers/thl/test_ledger/test_lm_accounts.py
+++ b/tests/managers/thl/test_ledger/test_lm_accounts.py
@@ -14,14 +14,14 @@ from generalresearch.managers.thl.ledger_manager.exceptions import (
LedgerAccountDoesntExistError,
)
from generalresearch.managers.thl.ledger_manager.ledger import LedgerManager
-from generalresearch.models.custom_types import AccountType, Direction
+from generalresearch.models.custom_types import AccountType, Direction, UUIDStr
from generalresearch.models.thl.ledger import (
LedgerAccount,
LedgerEntry,
)
if TYPE_CHECKING:
- from generalresearch.models.custom_types import UUIDStr
+
from generalresearch.models.thl.ledger import (
LedgerTransaction,
)
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),