|
| ExistentModulePaths = Path(find_file("skim/scripts/skim/WGs")).glob("*.py") |
|
list | ExistentModules |
|
Test case for skim registry.
Definition at line 28 of file test_skim_framework.py.
◆ assertIsSubclass()
def assertIsSubclass |
( |
|
self, |
|
|
|
cls, |
|
|
|
parent_cls, |
|
|
|
msg = None |
|
) |
| |
Fail if `cls` is not a subclass of `parent_cls`.
Definition at line 38 of file test_skim_framework.py.
38 def assertIsSubclass(self, cls, parent_cls, msg=None):
39 """Fail if `cls` is not a subclass of `parent_cls`."""
40 if not issubclass(cls, parent_cls):
41 standardMsg =
"%r is not a subclass of %r" % (cls, parent_cls)
42 self.fail(self._formatMessage(msg, standardMsg))
◆ test_clashing_skim_and_module_names()
def test_clashing_skim_and_module_names |
( |
|
self | ) |
|
◆ test_code_format()
def test_code_format |
( |
|
self | ) |
|
◆ test_decode()
◆ test_encode()
◆ test_invalid_names()
def test_invalid_names |
( |
|
self | ) |
|
◆ test_modules_exist()
def test_modules_exist |
( |
|
self | ) |
|
Check that all modules listed in registry exist in skim/scripts/skim/.
Definition at line 84 of file test_skim_framework.py.
◆ test_skims_exist()
def test_skims_exist |
( |
|
self | ) |
|
Check that the registry is correct about the location of every skim.
This test uses the information from the registry, and checks for missing skims
in the modules.
Definition at line 105 of file test_skim_framework.py.
◆ test_undocumented_skims()
def test_undocumented_skims |
( |
|
self | ) |
|
Check that every skim defined in a module is listed in the registry.
This test uses the information from the modules, and checks for missing or
incorrect skim information in the registry.
Definition at line 132 of file test_skim_framework.py.
◆ test_unique_codes()
def test_unique_codes |
( |
|
self | ) |
|
◆ test_unique_names()
def test_unique_names |
( |
|
self | ) |
|
◆ ExistentModules
Initial value:= [
module.stem
for module in ExistentModulePaths
if module.stem not in ["__init__", "registry"]
]
Definition at line 32 of file test_skim_framework.py.
The documentation for this class was generated from the following file: