MCPcopy
hub / github.com/cloudpipe/cloudpickle / test_dynamic_module

Function test_dynamic_module

tests/test_backward_compat.py:53–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def test_dynamic_module():
54 mod = load_obj("simple_module.pkl")
55 assert hasattr(mod, "f")
56 assert mod.f(1) == 2
57 assert mod.f(1, 1) == 2
58 assert mod.f(2, 2) == 4
59
60
61def test_simple_enum():

Callers

nothing calls this directly

Calls 2

load_objFunction · 0.85
fMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…