Skip to content

Commit b12f1e4

Browse files
Organize test-cases into folders, extract compatibility test into proper test, support adding test-case specific tests
1 parent 3546f55 commit b12f1e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+334
-220
lines changed

Pipfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ stringcase = "*"
2020
black = "*"
2121
backports-datetime-fromisoformat = "*"
2222
dataclasses = "*"
23+
betterproto = {editable = true,path = "."}
24+
pytest-asyncio = "*"
2325

2426
[requires]
2527
python_version = "3.6"

Pipfile.lock

Lines changed: 175 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

betterproto/plugin.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@SET plugin_dir=%~dp0
2+
@python %plugin_dir%/plugin.py %*

betterproto/tests/generate.py

Lines changed: 0 additions & 84 deletions
This file was deleted.
File renamed without changes.

betterproto/tests/inputs/bool/test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from betterproto.tests.output_betterproto.bool.bool import Test
2+
from betterproto.tests.util import read_relative
3+
4+
5+
def test_value():
6+
message = Test().from_json(read_relative(__file__, 'bool.json'))
7+
assert message.value
8+

0 commit comments

Comments
 (0)