Skip to content

Commit e8c31f4

Browse files
committed
Be clear that test uses enum value.
Change-Id: I03e319f2795c7c15f527316a145d021620936c57
1 parent 051a897 commit e8c31f4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test_content.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ class ADataClassWithList:
6767

6868

6969
class Choices(enum.Enum):
70-
A: str = "A"
71-
B: str = "B"
72-
C: str = "C"
73-
D: str = "D"
70+
A: int = 'a'
71+
B: int = 'b'
72+
C: int = 'c'
73+
D: int = 'd'
7474

7575

7676
@dataclasses.dataclass
@@ -549,13 +549,13 @@ def b():
549549
},
550550
),
551551
],
552-
["enum", Choices, protos.Schema(type=protos.Type.STRING, enum=["A", "B", "C", "D"])],
552+
["enum", Choices, protos.Schema(type=protos.Type.STRING, enum=["a", "b", "c", "d"])],
553553
[
554554
"enum_list",
555555
list[Choices],
556556
protos.Schema(
557557
type="ARRAY",
558-
items=protos.Schema(type=protos.Type.STRING, enum=["A", "B", "C", "D"]),
558+
items=protos.Schema(type=protos.Type.STRING, enum=["a", "b", "c", "d"]),
559559
),
560560
],
561561
[
@@ -564,7 +564,7 @@ def b():
564564
protos.Schema(
565565
type=protos.Type.OBJECT,
566566
properties={
567-
"choice": protos.Schema(type=protos.Type.STRING, enum=["A", "B", "C", "D"])
567+
"choice": protos.Schema(type=protos.Type.STRING, enum=["a", "b", "c", "d"])
568568
},
569569
),
570570
],

0 commit comments

Comments
 (0)