Skip to content

Commit 1caef80

Browse files
committed
Formatting
1 parent 9251b76 commit 1caef80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/utils/test_proto_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ def test_enum_conversions(self):
159159
)
160160

161161
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
162+
if state not in (
163+
types.TaskState.unknown,
164+
types.TaskState.rejected,
165+
types.TaskState.auth_required,
166166
):
167167
proto_state = proto_utils.ToProto.task_state(state)
168168
assert proto_utils.FromProto.task_state(proto_state) == state

0 commit comments

Comments
 (0)