patch_package
Full name: ase2sprkkr.common.init_tests.patch_package
- ase2sprkkr.common.init_tests.patch_package(package, name)[source]
Set the package name for the tests, to make the relative imports working.
Usage:
..code:
if __package__: from .init_tests import TestCase, patch_package else: from init_tests import TestCase, patch_package __package__, __name__ = patch_package(__package__, __name__)