taucmdr.tests.test_init module
Test functions.
Functions used for unit tests of taucmdr/__init__.py.
-
class taucmdr.tests.test_init.GlobalsTest(methodName='runTest')[source]
Bases: TestCase
Tests for the paths and names taucmdr defines when it is imported.
-
_classSetupFailed = False
-
_class_cleanups = []
-
static _print_system_prefix(env, cwd=None)[source]
Print taucmdr.SYSTEM_PREFIX in a new process.
Both system prefix variables are unset unless env sets them.
-
test_no_install_tree()[source]
TAU Commander doesn’t assume it lives in an install tree.
-
test_relative_system_prefix()[source]
A relative system prefix is an error.
-
test_same_prefix_both_names()[source]
Both variables may be set if they lead to the same directory.
-
test_script_name_default()[source]
The script name is tau unless the launcher specifies otherwise, however Python was started.
-
test_system_prefix_conflict()[source]
Both variables set to different directories is an error.
-
test_system_prefix_default()[source]
There is no system prefix unless one is set.
-
test_system_prefix_empty()[source]
An empty TAUCMDR_SYSTEM_PREFIX means there is no system prefix.
-
test_system_prefix_override()[source]
The system prefix is set by __TAUCMDR_SYSTEM_PREFIX__.
-
test_system_prefix_public_name()[source]
The system prefix is set by TAUCMDR_SYSTEM_PREFIX.
-
class taucmdr.tests.test_init.InstalledPackageTest(methodName='runTest')[source]
Bases: TestCase
Tests that tox tests the installed wheel.
-
_classSetupFailed = False
-
_class_cleanups = []
-
test_tests_use_installed_package()[source]
Under tox, the tested taucmdr is the one installed in the environment, not a checkout on PYTHONPATH.
-
class taucmdr.tests.test_init.PythonVersionTest(methodName='runTest')[source]
Bases: TestCase
Tests for the Python version check in taucmdr.
-
_classSetupFailed = False
-
_class_cleanups = []
-
test_matches_requires_python()[source]
The version check agrees with the package’s Requires-Python metadata.
-
test_supported_versions()[source]
-
test_unsupported_versions()[source]
-
class taucmdr.tests.test_init.VersionTest(methodName='runTest')[source]
Bases: TestCase
Tests for taucmdr.__version__.
-
_classSetupFailed = False
-
_class_cleanups = []
-
test_installed_version()[source]
The version is the installed package’s version, derived from a release tag.
-
taucmdr.tests.test_init._import_with_version(version)[source]
Import taucmdr in a new interpreter whose sys.version_info reports version (MAJOR, MINOR, MICRO).