88
99from src .uckn .api .main import app
1010
11+ # Mark all tests in this module as integration tests
12+ pytestmark = pytest .mark .integration
13+
1114
1215@pytest .fixture (scope = "module" )
1316def client ():
@@ -29,24 +32,24 @@ def test_patterns_endpoint_basic(client):
2932 """Test basic patterns endpoints"""
3033 # Test GET patterns (should work but might be 404 if not implemented)
3134 response = client .get ("/api/v1/patterns/" )
32- # Endpoint might not be fully implemented yet
33- assert response .status_code in [200 , 404 , 405 ]
35+ # Endpoint might not be fully implemented yet, or might require auth (401)
36+ assert response .status_code in [200 , 401 , 404 , 405 ]
3437
3538
3639def test_projects_endpoint_basic (client ):
3740 """Test basic projects endpoints"""
3841 # Test GET projects (should work but might be 404 if not implemented)
3942 response = client .get ("/api/v1/projects/" )
40- # Endpoint might not be fully implemented yet
41- assert response .status_code in [200 , 404 , 405 ]
43+ # Endpoint might not be fully implemented yet, or might require auth (401)
44+ assert response .status_code in [200 , 401 , 404 , 405 ]
4245
4346
4447def test_error_solutions_endpoint_basic (client ):
4548 """Test basic error solutions endpoints"""
4649 # Test GET solutions (should work even if empty)
4750 response = client .get ("/api/v1/error-solutions/" )
48- # This might be 404 if endpoint doesn't exist yet, or 200 if it does
49- assert response .status_code in [200 , 404 , 405 ]
51+ # This might be 404 if endpoint doesn't exist yet, or 200 if it does, or 401 if auth required
52+ assert response .status_code in [200 , 401 , 404 , 405 ]
5053
5154
5255def test_api_root (client ):
0 commit comments