Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketmaurya committed Jan 17, 2025
1 parent bd354b8 commit e180365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_lit_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def test_server_run_with_invalid_api_worker(simple_litapi):
server.run(num_api_servers=0)


@pytest.mark.skipif(sys.platform != "win32", reason="Test is only for Windows")
@patch("litserve.server.uvicorn")
def test_server_run_windows(mock_uvicorn):
api = ls.test_examples.SimpleLitAPI()
Expand All @@ -289,7 +290,6 @@ def test_server_run_windows(mock_uvicorn):
server.launch_inference_worker = MagicMock(return_value=[MagicMock(), [MagicMock()]])
server._start_server = MagicMock()

# Running the method to test
server.run(api_server_worker_type=None)
actual = server._start_server.call_args
assert actual[0][4] == "thread", "Windows only supports thread mode"
Expand Down

0 comments on commit e180365

Please sign in to comment.