Marketplace tests update

This commit is contained in:
2025-09-24 22:28:44 +02:00
parent f9879126c8
commit cea88a46c5
16 changed files with 613 additions and 73 deletions

View File

@@ -13,7 +13,7 @@ from models.database.product import Product
class TestExportFunctionality:
def test_csv_export_basic(self, client, auth_headers, test_product):
"""Test basic CSV export functionality"""
response = client.get("/api/v1/export-csv", headers=auth_headers)
response = client.get("/api/v1/product/export-csv", headers=auth_headers)
assert response.status_code == 200
assert response.headers["content-type"] == "text/csv; charset=utf-8"
@@ -40,7 +40,7 @@ class TestExportFunctionality:
db.commit()
response = client.get(
"/api/v1/export-csv?marketplace=Amazon", headers=auth_headers
"/api/v1/product/export-csv?marketplace=Amazon", headers=auth_headers
)
assert response.status_code == 200
@@ -66,7 +66,7 @@ class TestExportFunctionality:
import time
start_time = time.time()
response = client.get("/api/v1/export-csv", headers=auth_headers)
response = client.get("/api/v1/product/export-csv", headers=auth_headers)
end_time = time.time()
assert response.status_code == 200