-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: purerpc.test_utils.PureRPCTestCase is removed
- Loading branch information
Showing
11 changed files
with
1,118 additions
and
1,176 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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
test=pytest | ||
|
||
[tool:pytest] | ||
addopts = -n auto --forked tests/ | ||
addopts = --fulltrace tests/ |
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,24 @@ | ||
import pytest | ||
|
||
from purerpc.test_utils import compile_temp_proto | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def greeter_modules(): | ||
with compile_temp_proto("data/greeter.proto") as modules: | ||
yield modules | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def greeter_pb2(greeter_modules): | ||
return greeter_modules[0] | ||
|
||
|
||
# @pytest.fixture(scope="session") | ||
# def greeter_pb2_grpc(greeter_modules): | ||
# return greeter_modules[1] | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def greeter_grpc(greeter_modules): | ||
return greeter_modules[1] |
Oops, something went wrong.