8000 Fix test · AdrienVannson/python-betterproto@2324c06 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2324c06

Browse files
committed
Fix test
1 parent f8e7e54 commit 2324c06

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/inputs/oneof_enum/test_oneof_enum.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ def test_which_one_of_returns_second_field_when_set():
4242
message = Test()
4343
message.from_json(get_test_case_json_data("oneof_enum")[0].json)
4444
assert message.move == Move(x=2, y=3)
45-
assert not hasattr(message, "signal")
46-
assert object.__getattribute__(message, "signal") == betterproto.PLACEHOLDER
45+
assert message.signal == 0
4746
assert betterproto.which_one_of(message, "action") == ("move", Move(x=2, y=3))

0 commit comments

Comments
 (0)
0