boilercore_tests.test_namespaces#

Tests for notebook namespaces.

Module Contents#

Functions#

test_not_cached_before

Notebook is not cached before.

test_empty_ns

Namespace is empty.

test_cached_equals

Cached function returns the same namespace.

test_cached

Cached function creates a cache file.

test_cache_startswith

Cache file starts with a certain byte string.

test_cleared

Cache file is cleared.

test_only_a

Namespace has only attribute ‘a’.

test_a_equals

Namespace attribute ‘a’ is as expected.

API#

boilercore_tests.test_namespaces.test_not_cached_before(
cache_file,
)#

Notebook is not cached before.

boilercore_tests.test_namespaces.test_empty_ns(
cached_function,
)#

Namespace is empty.

boilercore_tests.test_namespaces.test_cached_equals(
cached_function,
)#

Cached function returns the same namespace.

boilercore_tests.test_namespaces.test_cached(
cached_function,
cache_file,
)#

Cached function creates a cache file.

boilercore_tests.test_namespaces.test_cache_startswith(
cached_function,
cache_file,
)#

Cache file starts with a certain byte string.

boilercore_tests.test_namespaces.test_cleared(
cached_function,
cache_file,
)#

Cache file is cleared.

boilercore_tests.test_namespaces.test_only_a(
cached_function,
)#

Namespace has only attribute ‘a’.

boilercore_tests.test_namespaces.test_a_equals(
cached_function,
)#

Namespace attribute ‘a’ is as expected.