marketplace refactoring
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
# tests/integration/api/v1/test_stats_endpoints.py
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
@pytest.mark.api
|
||||
@pytest.mark.stats
|
||||
class TestStatsAPI:
|
||||
def test_get_basic_stats(self, client, auth_headers, test_product):
|
||||
def test_get_basic_stats(self, client, auth_headers, test_marketplace_product):
|
||||
"""Test getting basic statistics"""
|
||||
response = client.get("/api/v1/stats", headers=auth_headers)
|
||||
|
||||
@@ -16,7 +18,7 @@ class TestStatsAPI:
|
||||
assert "unique_shops" in data
|
||||
assert data["total_products"] >= 1
|
||||
|
||||
def test_get_marketplace_stats(self, client, auth_headers, test_product):
|
||||
def test_get_marketplace_stats(self, client, auth_headers, test_marketplace_product):
|
||||
"""Test getting marketplace statistics"""
|
||||
response = client.get("/api/v1/stats/marketplace", headers=auth_headers)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user