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 2ba226c commit 3843b6bCopy full SHA for 3843b6b
msrc-appconfig/tests/schema_test.py
@@ -137,8 +137,9 @@ def test_unsupported_type(mocker):
137
# Tuples must be homogenious
138
mk_schema(("a", ty.Tuple[int, str]))
139
with pytest.raises(TypeError):
140
- # Tuple element cannot be a schema
141
- mk_schema(("a", ty.Tuple[mk_class(("a", int))]))
+ # Tuple element must be any atomic but a schema
+ A = mk_class(("a", int))
142
+ mk_schema(("a", ty.Tuple[A]))
143
mocker.patch("msrc.appconfig.schema.get_schema",
144
return_value=(("a", 0),))
145
0 commit comments