Skip to content

Commit

Permalink
Adding min_tests.py loading
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
  • Loading branch information
ericspod committed Sep 27, 2024
1 parent 42e8e1c commit 897cf17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/min_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ def run_testsuit():


if __name__ == "__main__":
# testing import submodules
from monai.utils.module import load_submodules

_, err_mod = load_submodules(sys.modules["monai"], True)
assert not err_mod, f"err_mod={err_mod} not empty"

# testing all modules
test_runner = unittest.TextTestRunner(stream=sys.stdout, verbosity=2)
result = test_runner.run(run_testsuit())
Expand Down

0 comments on commit 897cf17

Please sign in to comment.