Skip to content

Commit a3a5027

Browse files
committed
Delete useless tests
1 parent eb5ed8e commit a3a5027

5 files changed

Lines changed: 0 additions & 27 deletions

File tree

betterproto2/tests/inputs/config.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,3 @@
1919
"empty_service",
2020
"service_uppercase",
2121
}
22-
23-
24-
# Indicate json sample messages to skip when testing that json (de)serialization
25-
# is symmetrical becuase some cases legitimately are not symmetrical.
26-
# Each key references the name of the test scenario and the values in the tuple
27-
# Are the names of the json files.
28-
non_symmetrical_json = {"empty_repeated": ("empty_repeated",)}

betterproto2/tests/inputs/empty_repeated/empty_repeated.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

betterproto2/tests/test_inputs.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ def test_message_json(test_data: TestData) -> None:
149149
plugin_module, _, json_data = test_data
150150

151151
for sample in json_data:
152-
if sample.belongs_to(test_input_config.non_symmetrical_json):
153-
continue
154-
155152
message: betterproto2.Message = plugin_module.Test.from_json(sample.json)
156153
message_json = message.to_json(indent=0)
157154

betterproto2/tests/util.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ class TestCaseJsonFile:
2222
test_name: str
2323
file_name: str
2424

25-
def belongs_to(self, non_symmetrical_json: dict[str, tuple[str, ...]]) -> bool:
26-
return self.file_name in non_symmetrical_json.get(self.test_name, ())
27-
2825

2926
def get_test_case_json_data(test_case_name: str, *json_file_names: str) -> list[TestCaseJsonFile]:
3027
"""

betterproto2_compiler/tests/inputs/empty_repeated/empty_repeated.proto

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)