Marketplace tests update
This commit is contained in:
6
tests/fixtures/shop_fixtures.py
vendored
6
tests/fixtures/shop_fixtures.py
vendored
@@ -10,10 +10,10 @@ from models.database.stock import Stock
|
||||
@pytest.fixture
|
||||
def test_shop(db, test_user):
|
||||
"""Create a test shop with unique shop code"""
|
||||
unique_id = str(uuid.uuid4())[:8] # Short unique identifier
|
||||
unique_id = str(uuid.uuid4())[:8].upper() # Make unique ID uppercase
|
||||
shop = Shop(
|
||||
shop_code=f"TESTSHOP_{unique_id}",
|
||||
shop_name=f"Test Shop {unique_id}",
|
||||
shop_code=f"TESTSHOP_{unique_id}", # Will be all uppercase
|
||||
shop_name=f"Test Shop {unique_id.lower()}", # Keep display name readable
|
||||
owner_id=test_user.id,
|
||||
is_active=True,
|
||||
is_verified=True,
|
||||
|
||||
Reference in New Issue
Block a user