shop product refactoring
This commit is contained in:
@@ -315,7 +315,7 @@ class TestStatsService:
|
||||
def test_get_unique_shops_count(self, db, test_marketplace_product):
|
||||
"""Test getting unique shops count"""
|
||||
# Add products with different shop names
|
||||
shop_products = [
|
||||
products = [
|
||||
MarketplaceProduct(
|
||||
marketplace_product_id="SHOP001",
|
||||
title="Shop MarketplaceProduct 1",
|
||||
@@ -333,7 +333,7 @@ class TestStatsService:
|
||||
currency="EUR",
|
||||
),
|
||||
]
|
||||
db.add_all(shop_products)
|
||||
db.add_all(products)
|
||||
db.commit()
|
||||
|
||||
count = self.service._get_unique_shops_count(db)
|
||||
|
||||
Reference in New Issue
Block a user