tests.integration.test_pickling

tests.integration.test_pickling#

Unit tests that ensure all Edgegraph objects are pickleable and unpickleable.

Functions

test_p_executable_local(protocol)

Ensure that instances with extra code attached can be pickled.

test_p_executable_nonlocal(protocol)

Ensure that instances with extra non-local code can be pickled.

test_p_runtime_attributes(protocol)

Test pickling procedure saves and restores arbitrary defined-at-runtime attributes.

test_p_semisingleton(protocol)

Ensure semisingleton objects can be pickled.

test_p_singleton(protocol)

Ensure singleton objects can be pickled.

test_p_subclasses(protocol)

Ensure the pickling approach works with various subclass structures.

test_p_up_file(protocol, tmp_path, ...)

Ensure pickle data can actually be written to / read from a real file.

test_p_up_large(...)

Ensure large graphs don't cause recursion errors.

test_p_up_smoketest()

Quick it's-still-in-dev smoketest for just pickling and unpickling a vertex.

Classes

MultiTex(*args, **kwargs)

SingleTex(*args, **kwargs)