Update readme, add docs for standard tests
This commit is contained in:
@@ -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
|
||||
|
||||
6
betterproto/tests/inputs/bool/test_bool.py
Normal file
6
betterproto/tests/inputs/bool/test_bool.py
Normal 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"
|
||||
Reference in New Issue
Block a user