-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `tools.request` for `run_async=False` * Fix type annotations, Refactor tests --------- Co-authored-by: Dongwoo Arthur Kim <[email protected]>
- Loading branch information
1 parent
0ef6067
commit da0998d
Showing
5 changed files
with
155 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import os | ||
|
||
import pytest | ||
|
||
MODEL_NAME = os.environ.get("MODEL_NAME", "sample") | ||
TRITON_HOST = os.environ.get("TRITON_HOST", "localhost") | ||
TRITON_HTTP = os.environ.get("TRITON_HTTP", "8100") | ||
TRITON_GRPC = os.environ.get("TRITON_GRPC", "8101") | ||
|
||
|
||
@pytest.fixture(params=[("http", TRITON_HTTP, True), ("grpc", TRITON_GRPC, True), ("grpc", TRITON_GRPC, False)]) | ||
def config(request): | ||
""" | ||
Returns a tuple of (protocol, port, run_async) | ||
""" | ||
return request.param |
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
Oops, something went wrong.