Move configuration of test-cases to config file, include list of service tests
This commit is contained in:
parent
f25c66777a
commit
e8a9960b73
@ -87,4 +87,4 @@ betterproto/tests/test_inputs.py ..x...x..x...x.X........xx........x.....x......
|
|||||||
- `x` — XFAIL: expected failure
|
- `x` — XFAIL: expected failure
|
||||||
- `X` — XPASS: expected failure, but still passed
|
- `X` — XPASS: expected failure, but still passed
|
||||||
|
|
||||||
Test cases marked for expected failure are declared in [inputs/xfail.py](inputs.xfail.py)
|
Test cases marked for expected failure are declared in [inputs/config.py](inputs/config.py)
|
@ -6,5 +6,14 @@ tests = {
|
|||||||
"import_root_package_from_child",
|
"import_root_package_from_child",
|
||||||
"import_parent_package_from_child",
|
"import_parent_package_from_child",
|
||||||
"import_circular_dependency",
|
"import_circular_dependency",
|
||||||
|
"import_packages_same_name",
|
||||||
"oneof_enum",
|
"oneof_enum",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
services = {
|
||||||
|
"googletypes_response",
|
||||||
|
"googletypes_response_embedded",
|
||||||
|
"service",
|
||||||
|
"import_service_input_message",
|
||||||
|
"import_service_input_message_dependency",
|
||||||
|
}
|
@ -8,7 +8,7 @@ from typing import Set
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import betterproto
|
import betterproto
|
||||||
from betterproto.tests.inputs import xfail
|
from betterproto.tests.inputs import config as test_input_config
|
||||||
from betterproto.tests.mocks import MockChannel
|
from betterproto.tests.mocks import MockChannel
|
||||||
from betterproto.tests.util import get_directories, get_test_case_json_data, inputs_path
|
from betterproto.tests.util import get_directories, get_test_case_json_data, inputs_path
|
||||||
|
|
||||||
@ -45,14 +45,8 @@ class TestCases:
|
|||||||
|
|
||||||
test_cases = TestCases(
|
test_cases = TestCases(
|
||||||
path=inputs_path,
|
path=inputs_path,
|
||||||
# test cases for services
|
services=test_input_config.services,
|
||||||
services={
|
xfail=test_input_config.tests,
|
||||||
"googletypes_response",
|
|
||||||
"googletypes_response_embedded",
|
|
||||||
"service",
|
|
||||||
"import_service_input_message_dependency",
|
|
||||||
},
|
|
||||||
xfail=xfail.tests,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
plugin_output_package = "betterproto.tests.output_betterproto"
|
plugin_output_package = "betterproto.tests.output_betterproto"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user