vendor refactoring

This commit is contained in:
2025-10-05 19:49:03 +02:00
parent 0114b6c46e
commit f569995883
17 changed files with 121 additions and 121 deletions

View File

@@ -19,7 +19,7 @@ class TestBackgroundTasks:
job = MarketplaceImportJob(
status="pending",
source_url="http://example.com/test.csv",
vendor_name="TESTSHOP",
vendor_name="TESTVENDOR",
marketplace="TestMarket",
vendor_id=test_vendor.id,
user_id=test_user.id,
@@ -47,7 +47,7 @@ class TestBackgroundTasks:
# Run background task
await process_marketplace_import(
job_id, "http://example.com/test.csv", "TestMarket", "TESTSHOP", 1000
job_id, "http://example.com/test.csv", "TestMarket", "TESTVENDOR", 1000
)
# Re-query the job using the stored ID
@@ -73,7 +73,7 @@ class TestBackgroundTasks:
job = MarketplaceImportJob(
status="pending",
source_url="http://example.com/test.csv",
vendor_name="TESTSHOP",
vendor_name="TESTVENDOR",
marketplace="TestMarket",
vendor_id=test_vendor.id,
user_id=test_user.id,
@@ -102,7 +102,7 @@ class TestBackgroundTasks:
job_id,
"http://example.com/test.csv",
"TestMarket",
"TESTSHOP",
"TESTVENDOR",
1000,
)
except Exception:
@@ -142,7 +142,7 @@ class TestBackgroundTasks:
999, # Non-existent job ID
"http://example.com/test.csv",
"TestMarket",
"TESTSHOP",
"TESTVENDOR",
1000,
)
@@ -157,7 +157,7 @@ class TestBackgroundTasks:
job = MarketplaceImportJob(
status="pending",
source_url="http://example.com/test.csv",
vendor_name="TESTSHOP",
vendor_name="TESTVENDOR",
marketplace="TestMarket",
vendor_id=test_vendor.id,
user_id=test_user.id,
@@ -185,7 +185,7 @@ class TestBackgroundTasks:
# Run background task
await process_marketplace_import(
job_id, "http://example.com/test.csv", "TestMarket", "TESTSHOP", 1000
job_id, "http://example.com/test.csv", "TestMarket", "TESTVENDOR", 1000
)
# Re-query the job using the stored ID