We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9251b76 commit 1caef80Copy full SHA for 1caef80
tests/utils/test_proto_utils.py
@@ -159,10 +159,10 @@ def test_enum_conversions(self):
159
)
160
161
for state in types.TaskState:
162
- if (
163
- state != types.TaskState.unknown
164
- and state != types.TaskState.rejected
165
- and state != types.TaskState.auth_required
+ if state not in (
+ types.TaskState.unknown,
+ types.TaskState.rejected,
+ types.TaskState.auth_required,
166
):
167
proto_state = proto_utils.ToProto.task_state(state)
168
assert proto_utils.FromProto.task_state(proto_state) == state
0 commit comments