Prototypes | |
| def | test_python_imports.read_exclude_file (source) |
| Read all excluded file paths from the given source file. More... | |
| def | test_python_imports.find_modules (path) |
| Returns the paths to all python module files. More... | |
| def | test_python_imports.path_to_name (filepath) |
| Returns the module name for a given file path. More... | |
| def | test_python_imports.test_import (module) |
| Test that the named module can be imported. More... | |
Go to the source code of this file.
Namespaces | |
| namespace | test_python_imports |
Variables | |
| string | test_python_imports.PACKAGE = "lalinspiral" |
| string | test_python_imports.CONDA_BUILD_TEST = "TEST" |
| list | test_python_imports.DEFAULT_PYTEST_ARGUMENTS |
| test_python_imports.HERE = Path(__file__).parent.absolute() | |
| tuple | test_python_imports.BUILDDIR = (HERE / Path(".")).resolve() |
| tuple | test_python_imports.SRCDIR = (HERE / Path(".")).resolve() |
| tuple | test_python_imports.TOPBUILDDIR = (HERE / Path("../..")).resolve() |
| tuple | test_python_imports.EXCLUDEFILE = SRCDIR / "exclude-modules.txt" |
| test_python_imports.PYTHONMODDIR = Path(import_module(PACKAGE).__path__[0]) | |
| test_python_imports.EXCLUDE = set(map(path_to_name, read_exclude_file(EXCLUDEFILE))) | |
| list | test_python_imports.MODULES = [path_to_name(x) for x in sorted(find_modules(PYTHONMODDIR))] |
| list | test_python_imports.args = sys.argv[1:] or DEFAULT_PYTEST_ARGUMENTS |