MCPcopy Index your code
hub / github.com/pathwaycom/pathway / test_list

Function test_list

python/pathway/tests/test_yaml.py:132–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131
132def test_list():
133 yaml_config = """
134$foo: !pw.tests.test_yaml.Foo
135 a: 2
136
137foo_list:
138 - !pw.tests.test_yaml.Foo
139 a: 1
140 b: 2
141 c: bar
142 - $foo
143"""
144
145 d = load_yaml(yaml_config)
146 assert "foo_list" in d.keys()
147 assert d["foo_list"] == [Foo(1, 2, "bar"), Foo(2)]
148
149
150def test_pydantic_config_from_yaml():

Callers

nothing calls this directly

Calls 3

load_yamlFunction · 0.90
FooClass · 0.85
keysMethod · 0.45

Tested by

no test coverage detected