Update readme, add docs for standard tests

This commit is contained in:
boukeversteegh
2020-05-22 16:36:43 +02:00
parent 6969ff7ff6
commit 77c04414f5
5 changed files with 102 additions and 13 deletions

View File

@@ -1,8 +0,0 @@
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

View File

@@ -0,0 +1,6 @@
from betterproto.tests.output_betterproto.bool.bool import Test
def test_value():
message = Test()
assert not message.value, "Boolean is False by default"