Skip to content

Commit 92088eb

Browse files
Cleanup
1 parent c3e3837 commit 92088eb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

betterproto/tests/test_inputs.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import os
44
import sys
55
import pytest
6+
import betterproto
7+
from betterproto.tests.util import get_directories, inputs_path
68

79
# Force pure-python implementation instead of C++, otherwise imports
810
# break things because we can't properly reset the symbol database.
@@ -12,8 +14,6 @@
1214
from google.protobuf.descriptor_pool import DescriptorPool
1315
from google.protobuf.json_format import Parse
1416

15-
import betterproto
16-
from betterproto.tests.util import get_directories, inputs_path
1717

1818
excluded_test_cases = {'googletypes_response', 'service'}
1919
test_case_names = {*get_directories(inputs_path)} - excluded_test_cases
@@ -50,13 +50,8 @@ def test_message_json(test_case_name: str) -> None:
5050
message.from_json(reference_json_data)
5151
message_json = message.to_json(0)
5252

53-
print(reference_json_data)
54-
print(message_json)
55-
5653
assert json.loads(reference_json_data) == json.loads(message_json)
5754

58-
# todo: handle -negative
59-
6055

6156
@pytest.mark.parametrize("test_case_name", test_case_names)
6257
def test_binary_compatibility(test_case_name: str) -> None:
@@ -67,7 +62,6 @@ def test_binary_compatibility(test_case_name: str) -> None:
6762

6863
reference_module_root = os.path.join(*reference_output_package.split('.'), test_case_name)
6964

70-
print(f'Appending {reference_module_root}')
7165
sys.path.append(reference_module_root)
7266

7367
# import reference message
@@ -95,6 +89,7 @@ def test_binary_compatibility(test_case_name: str) -> None:
9589
helper methods
9690
'''
9791

92+
9893
def get_test_case_json_data(test_case_name):
9994
test_data_path = os.path.join(inputs_path, test_case_name, f'{test_case_name}.json')
10095
if not os.path.exists(test_data_path):

0 commit comments

Comments
 (0)