Skip to content

Commit ec4d445

Browse files
Remove wrong test (#91)
1 parent f0b150e commit ec4d445

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/inputs/oneof/test_oneof.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import pytest
2-
31
import betterproto2
42
from tests.util import get_test_case_json_data
53

@@ -34,15 +32,3 @@ def test_oneof_constructor_assign():
3432
field, value = betterproto2.which_one_of(message, "bar")
3533
assert field == "mixed_drink"
3634
assert value.shots == 42
37-
38-
39-
# Issue #305:
40-
@pytest.mark.xfail
41-
def test_oneof_nested_assign():
42-
from tests.output_betterproto.oneof import Test
43-
44-
message = Test()
45-
message.mixed_drink.shots = 42
46-
field, value = betterproto2.which_one_of(message, "bar")
47-
assert field == "mixed_drink"
48-
assert value.shots == 42

0 commit comments

Comments
 (0)