vendor refactoring
This commit is contained in:
@@ -97,7 +97,7 @@ class TestMarketplaceService:
|
||||
request = MarketplaceImportJobRequest(
|
||||
url="https://example.com/products.csv",
|
||||
marketplace="Amazon",
|
||||
vendor_code="INVALID_SHOP",
|
||||
vendor_code="INVALID_VENDOR",
|
||||
batch_size=1000,
|
||||
)
|
||||
|
||||
@@ -106,7 +106,7 @@ class TestMarketplaceService:
|
||||
|
||||
exception = exc_info.value
|
||||
assert exception.error_code == "VENDOR_NOT_FOUND"
|
||||
assert "INVALID_SHOP" in exception.message
|
||||
assert "INVALID_VENDOR" in exception.message
|
||||
|
||||
def test_create_import_job_unauthorized_access(self, db, test_vendor, test_user, other_user):
|
||||
"""Test import job creation with unauthorized vendor access"""
|
||||
@@ -452,7 +452,7 @@ class TestMarketplaceService:
|
||||
request = MarketplaceImportJobRequest(
|
||||
url="https://example.com/products.csv",
|
||||
marketplace="Amazon",
|
||||
vendor_code="TEST_SHOP",
|
||||
vendor_code="TEST_VENDOR",
|
||||
batch_size=1000,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user