code quality run
This commit is contained in:
@@ -8,7 +8,7 @@ class TestShopsAPI:
|
||||
shop_data = {
|
||||
"shop_code": "NEWSHOP",
|
||||
"shop_name": "New Shop",
|
||||
"description": "A new test shop"
|
||||
"description": "A new test shop",
|
||||
}
|
||||
|
||||
response = client.post("/api/v1/shop", headers=auth_headers, json=shop_data)
|
||||
@@ -23,7 +23,7 @@ class TestShopsAPI:
|
||||
"""Test creating shop with duplicate code"""
|
||||
shop_data = {
|
||||
"shop_code": test_shop.shop_code, # Same as test_shop
|
||||
"shop_name": test_shop.shop_name
|
||||
"shop_name": test_shop.shop_name,
|
||||
}
|
||||
|
||||
response = client.post("/api/v1/shop", headers=auth_headers, json=shop_data)
|
||||
@@ -42,7 +42,9 @@ class TestShopsAPI:
|
||||
|
||||
def test_get_shop_by_code(self, client, auth_headers, test_shop):
|
||||
"""Test getting specific shop"""
|
||||
response = client.get(f"/api/v1/shop/{test_shop.shop_code}", headers=auth_headers)
|
||||
response = client.get(
|
||||
f"/api/v1/shop/{test_shop.shop_code}", headers=auth_headers
|
||||
)
|
||||
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
|
||||
Reference in New Issue
Block a user