Refactoring code for modular approach
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user