PathIntegrityTestCase
- class PathIntegrityTestCase(methodName='runTest')[source]
Bases:
IntegrityTestCase
A test case that can be configured with paths.
For example, in this might be used in a custom instance of Biomappings like in the following:
from biomappings.testing import PathIntegrityTestCase HERE = Path(__file__).parent.resolve() class TestCustom(PathIntegrityTestCase): predictions_path = HERE.joinpath("predictions.tsv") positives_path = HERE.joinpath("positive.tsv") negatives_path = HERE.joinpath("negative.tsv") unsure_path = HERE.joinpath("unsure.tsv")
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
Methods Summary
Set up the test case.
Methods Documentation