-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import pytest | ||
import requests | ||
from test_runner import start_server, stop_server | ||
|
||
|
||
class TestApiEngineList: | ||
|
||
@pytest.fixture(autouse=True) | ||
def setup_and_teardown(self): | ||
# Setup | ||
# Not sure why but on macOS amd, the first start server timeouts with CI | ||
start_server() | ||
stop_server() | ||
success = start_server() | ||
if not success: | ||
raise Exception("Failed to start server") | ||
|
||
yield | ||
|
||
# Teardown | ||
stop_server() | ||
|
||
def test_engines_list_api_run_successfully(self): | ||
response = requests.get("http://localhost:3928/engines") | ||
assert response.status_code == 200 |