reda.testing package¶
Testing utilities
- reda.testing.test(target=None, show=False, onlydoctests=False, abort=False, verbose=True)[source]¶
Run docstring examples and additional tests.
- Parameters:
- targetfunction or string, optional
Function or method to test. By default everything is tested.
- showboolean, optional
Show matplotlib windows during test run. They will be closed automatically.
- onlydoctestsboolean, optional
Run test files in ../tests as well.
- abortboolean, optional
Return correct exit code, e.g. abort documentation build when a test fails.
Subpackages¶
Submodules¶
reda.testing.containers module¶
Dummy data containers for testing purposes.
reda.testing.fzj_readbin module¶
reda.testing.test_container_ert module¶
Container tests for the ERT container
# Missing test cases
Add data with and without electrode positions
Add data with and without timesteps (i.e., import multiple data for one time step, or for multiple ones)
How to proceed if electrode positions were already imported, but a newly added dataset does not provide electrode coordinates? -> throw an error if there are any electrode numbers to accounted for yet -> make sure the documentation knows how to add electrode numbers
test the verbose switch. Is this the same as debugging?
How to test the journal?
Check the initialization with a dataframe (or better: try to initialize with something else and check for the exception)
reda.testing.test_container_seit module¶
reda.testing.test_crtomo_import module¶
Test reda.importers.crtomo functionality