Organize test-cases into folders, extract compatibility test into proper test, support adding test-case specific tests

This commit is contained in:
boukeversteegh
2020-05-22 12:54:01 +02:00
parent 3546f55146
commit b12f1e4e61
53 changed files with 332 additions and 218 deletions

View File

@@ -0,0 +1,3 @@
{
"value": true
}

View File

@@ -0,0 +1,5 @@
syntax = "proto3";
message Test {
bool value = 1;
}

View File

@@ -0,0 +1,8 @@
from betterproto.tests.output_betterproto.bool.bool import Test
from betterproto.tests.util import read_relative
def test_value():
message = Test().from_json(read_relative(__file__, 'bool.json'))
assert message.value