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 f0b150e commit ec4d445Copy full SHA for ec4d445
tests/inputs/oneof/test_oneof.py
@@ -1,5 +1,3 @@
1
-import pytest
2
-
3
import betterproto2
4
from tests.util import get_test_case_json_data
5
@@ -34,15 +32,3 @@ def test_oneof_constructor_assign():
34
32
field, value = betterproto2.which_one_of(message, "bar")
35
33
assert field == "mixed_drink"
36
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