Refactoring code for modular approach

This commit is contained in:
2025-09-12 21:37:08 +02:00
parent 12e0d64484
commit c7d6b33cd5
15 changed files with 1419 additions and 184 deletions

View File

@@ -57,7 +57,7 @@ class TestIntegrationFlows:
"description": "Test shop for integration"
}
response = client.post("/api/v1/shops", headers=auth_headers, json=shop_data)
response = client.post("/api/v1/shop", headers=auth_headers, json=shop_data)
assert response.status_code == 200
shop = response.json()
@@ -77,7 +77,7 @@ class TestIntegrationFlows:
# This would test the shop-product association
# 4. Get shop details
response = client.get(f"/api/v1/shops/{shop['shop_code']}", headers=auth_headers)
response = client.get(f"/api/v1/shop/{shop['shop_code']}", headers=auth_headers)
assert response.status_code == 200
def test_stock_operations_workflow(self, client, auth_headers):