@@ -378,21 +378,22 @@ class TestLogsServerIntegration:
378378
379379 @pytest .fixture
380380 def temp_build_dir_with_files (self ):
381- """Create a temporary build directory with various test files ."""
381+ """Create a temporary build directory with index.html and assets/ directory ."""
382382 with tempfile .TemporaryDirectory () as temp_dir :
383383 temp_path = Path (temp_dir )
384384
385385 # Create index.html
386386 (temp_path / "index.html" ).write_text ("<html><body>Test</body></html>" )
387387
388- # Create some static assets
389- (temp_path / "static" ).mkdir ()
390- (temp_path / "static" / "app.js" ).write_text ("console.log('test');" )
391- (temp_path / "static" / "style.css" ).write_text ("body { color: black; }" )
388+ # Create assets directory and some files inside it
389+ assets_dir = temp_path / "assets"
390+ assets_dir .mkdir ()
391+ (assets_dir / "app.js" ).write_text ("console.log('test');" )
392+ (assets_dir / "style.css" ).write_text ("body { color: black; }" )
392393
393- # Create a nested directory structure
394- (temp_path / "nested" ).mkdir ()
395- (temp_path / "nested" / "file.txt" ).write_text ("nested content" )
394+ # Optionally, create a nested directory inside assets
395+ (assets_dir / "nested" ).mkdir ()
396+ (assets_dir / "nested" / "file.txt" ).write_text ("nested content" )
396397
397398 yield temp_path
398399
@@ -407,11 +408,11 @@ def test_static_file_serving(self, temp_build_dir_with_files):
407408 assert "Test" in response .text
408409
409410 # Test serving static files
410- response = client .get ("/static /app.js" )
411+ response = client .get ("/assets /app.js" )
411412 assert response .status_code == 200
412413 assert "console.log('test')" in response .text
413414
414- response = client .get ("/static /style.css" )
415+ response = client .get ("/assets /style.css" )
415416 assert response .status_code == 200
416417 assert "color: black" in response .text
417418
@@ -442,7 +443,7 @@ def test_health_endpoint(self, temp_build_dir_with_files):
442443 response = client .get ("/health" )
443444 assert response .status_code == 200
444445 data = response .json ()
445- assert data ["status" ] == "healthy "
446+ assert data ["status" ] == "ok "
446447
447448
448449@pytest .mark .asyncio
0 commit comments