-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #51: Add inference request test
- Loading branch information
MaxenceGui
committed
Apr 8, 2024
1 parent
e581703
commit e340108
Showing
7 changed files
with
280 additions
and
171 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
import unittest | ||
import asyncio | ||
|
||
from app import app | ||
|
||
class TestQuartHealth(unittest.TestCase): | ||
def test_health(self): | ||
test = app.test_client() | ||
|
||
loop = asyncio.get_event_loop() | ||
response = loop.run_until_complete( | ||
test.get('/health') | ||
) | ||
print(response.status_code) | ||
self.assertEqual(response.status_code, 200) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
Oops, something went wrong.