File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ Note: The tests and code coverage are only for the core module. The web frontend
8989cd core/nurse_scheduling
9090# development mode
9191fastapi dev serve.py
92+
93+ cd ..
9294# run curl (needs to be run after the server is running)
9395./tests/test_serve_curl.sh
9496# run serve tests (don't need to be run after the server is running)
Original file line number Diff line number Diff line change 2121import io
2222import logging
2323import os
24+ import sys
25+ # Add the project root to the Python path so imports will work when running directly
26+ sys .path .insert (0 , os .path .dirname (os .path .dirname (os .path .abspath (__file__ ))))
2427
2528import nurse_scheduling
2629import pandas
Original file line number Diff line number Diff line change 2020# Pytest tests for nurse scheduling FastAPI server.
2121# Based on the FastAPI Testing guide: https://fastapi.tiangolo.com/tutorial/testing/
2222
23+ import os
24+ import sys
25+ # Add the project root to the Python path so imports will work when running directly
26+ sys .path .insert (0 , os .path .dirname (os .path .dirname (os .path .abspath (__file__ ))))
2327import pytest
2428from pathlib import Path
2529from fastapi .testclient import TestClient
@@ -216,7 +220,7 @@ def test_empty_yaml_content(self):
216220 )
217221
218222 # Should return an error for empty content
219- assert response .status_code == 500
223+ assert response .status_code == 400
220224
221225 def test_invalid_yaml_syntax (self ):
222226 """Test with invalid YAML syntax."""
You can’t perform that action at this time.
0 commit comments