aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMax Nanis2026-08-30 22:14:44 -0700
committerMax Nanis2026-08-30 22:14:44 -0700
commit89e88d7695044785470824dee839fd3cd6bd5ddf (patch)
treedaabfc38291b0e490b24a2021a0096ae00762557 /tests
parent2982c55ba175f0995b0c2ab4a1142a5d2635f6ac (diff)
downloadgeneralresearch-89e88d7695044785470824dee839fd3cd6bd5ddf.tar.gz
generalresearch-89e88d7695044785470824dee839fd3cd6bd5ddf.zip
imports work, gr base_init works. jenkins test1
Diffstat (limited to 'tests')
-rw-r--r--tests/managers/thl/test_cashout_method.py7
-rw-r--r--tests/models/gr/test_base.py9
2 files changed, 6 insertions, 10 deletions
diff --git a/tests/managers/thl/test_cashout_method.py b/tests/managers/thl/test_cashout_method.py
index 451d3e0..ca85c6b 100644
--- a/tests/managers/thl/test_cashout_method.py
+++ b/tests/managers/thl/test_cashout_method.py
@@ -12,12 +12,10 @@ from generalresearch.models.thl.user import User
from generalresearch.models.thl.wallet import PayoutType
from generalresearch.models.thl.wallet.cashout_method import (
CashMailCashoutMethodData,
+ CashoutMethod,
PaypalCashoutMethodData,
USDeliveryAddress,
)
-from test_utils.managers.cashout_methods import (
- EXAMPLE_TANGO_CASHOUT_METHODS,
-)
class TestTangoCashoutMethods:
@@ -26,13 +24,14 @@ class TestTangoCashoutMethods:
self,
cashout_method_manager: CashoutMethodManager,
setup_cashoutmethod_db: Callable[..., None],
+ example_tango_cashout_methods: list[CashoutMethod],
):
setup_cashoutmethod_db()
res = cashout_method_manager.filter(payout_types=[PayoutType.TANGO])
assert len(res) == 2
cm = next(x for x in res if x.ext_id == "U025035")
- assert EXAMPLE_TANGO_CASHOUT_METHODS[0] == cm
+ assert example_tango_cashout_methods[0] == cm
def test_user(
self,
diff --git a/tests/models/gr/test_base.py b/tests/models/gr/test_base.py
index 412fa52..a066fa1 100644
--- a/tests/models/gr/test_base.py
+++ b/tests/models/gr/test_base.py
@@ -15,8 +15,6 @@ class TestGRPostgresDjangoCreation:
def test_git(self, gr_repo: Callable[..., Path]):
repo_path = gr_repo()
- print("test_git.PATH:", repo_path)
-
try:
# Run the git command inside the target directory
result = subprocess.run(
@@ -37,16 +35,15 @@ class TestGRPostgresDjangoCreation:
django_db_factory: Callable[..., None],
):
- dsn = django_db_factory("gr")
+ dsn = django_db_factory("gr.common")
assert isinstance(dsn, PostgresDsn)
def test_django_tables(self, gr_db: PostgresConfig):
res = gr_db.execute_sql_query(query="""
- SELECT COUNT(*)
+ SELECT COUNT(*)
FROM information_schema.tables
WHERE table_schema = 'public';
""")
print(res)
assert len(res) == 1
- assert res[0]["count"] == 56
- assert True
+ assert res[0]["count"] == 10