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

Function test_class_initialization

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

Source from the content-addressed store, hash-verified

32
33
34def test_class_initialization():
35 yaml_config = """
36foo: !pw.tests.test_yaml.Foo
37 a: 1
38 b: 2
39 c: bar
40"""
41
42 d = load_yaml(yaml_config)
43 assert "foo" in d.keys()
44 assert len(d.keys()) == 1
45 assert d["foo"] == Foo(1, 2, "bar")
46
47
48def test_function_call():

Callers

nothing calls this directly

Calls 3

load_yamlFunction · 0.90
FooClass · 0.85
keysMethod · 0.45

Tested by

no test coverage detected