Application fully migrated to modular approach
This commit is contained in:
@@ -141,7 +141,7 @@ class TestStockAPI:
|
||||
data = response.json()
|
||||
assert len(data) == 2
|
||||
|
||||
def test_stock_requires_auth(self, client):
|
||||
def test_get_stock_without_auth(self, client):
|
||||
"""Test that stock endpoints require authentication"""
|
||||
response = client.get("/api/v1/stock")
|
||||
assert response.status_code == 403
|
||||
assert response.status_code == 401 # No authorization header
|
||||
|
||||
Reference in New Issue
Block a user