Skip to content

Commit 3b6ad49

Browse files
author
Steve Ayers
committed
Revert
1 parent 99f629a commit 3b6ad49

File tree

4 files changed

+0
-106
lines changed

4 files changed

+0
-106
lines changed

proto/__init__.py

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

proto/tests/example/v1/predefined.proto

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

proto/tests/example/v1/validations.proto

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,3 @@ message Embed {
6363
message RepeatedEmbedSkip {
6464
repeated Embed val = 1 [(buf.validate.field).repeated.items.ignore = IGNORE_ALWAYS];
6565
}
66-
/* message MapInts { */
67-
/* map<int64, int64> stuff = 1 [(buf.validate.field).map.(maxim) = 4]; */
68-
/* map<int64, int64> stuff2 = 2 [(buf.validate.field).map.(maxim2) = 4]; */
69-
/* map<int64, int64> stuff3 = 3 [(buf.validate.field).map.(maxim3) = 4]; */
70-
/* map<int64, int64> stuff4 = 4 [(buf.validate.field).map.(maxim4) = 4]; */
71-
/* map<int64, int64> stuff5 = 5 [(buf.validate.field).map.(maxim5) = 4]; */
72-
/* map<int64, int64> stuff6 = 6 [(buf.validate.field).map.(maxim6) = 4]; */
73-
/* map<int64, int64> stuff7 = 7 [(buf.validate.field).map.(maxim7) = 4]; */
74-
/* map<int64, int64> stuff8 = 8 [(buf.validate.field).map.(maxim8) = 4]; */
75-
/* map<int64, int64> stuff9 = 9 [(buf.validate.field).map.(maxim9) = 4]; */
76-
/* } */

tests/validate_test.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,6 @@ def test_maps(self):
7777
violations = protovalidate.collect_violations(msg)
7878
assert len(violations) == 1
7979

80-
# def test_map_max(self):
81-
# msg = validations_pb2.MapInts()
82-
# msg.stuff9[1] = 2
83-
# msg.stuff9[2] = 2
84-
# msg.stuff9[3] = 2
85-
# try:
86-
# protovalidate.validate(msg)
87-
# except protovalidate.ValidationError as e:
88-
# print(e.violations[0])
89-
# # assert len(e.violations) == 1
90-
# print(e.to_proto().violations[0])
91-
# # assert str(e) == "invalid MapInts"
92-
93-
# # violations = protovalidate.collect_violations(msg)
94-
# # assert len(violations) == 1
95-
9680
def test_timestamp(self):
9781
msg = validations_pb2.TimestampGTNow()
9882
protovalidate.validate(msg)

0 commit comments

Comments
 (0)