Skip to content

Commit

Permalink
add func calls to new unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusOrsoe committed Sep 26, 2023
1 parent 67621c0 commit 9d2eb14
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/examples/01_icetray/test_icetray_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ def test_04_i3_module_in_native_icetray_example() -> None:
runpy.run_path(
os.path.join(EXAMPLE_PATH, "04_i3_module_in_native_icetray_example.py")
)


if __name__ == "__main__":
test_01_convert_i3_files()
test_02_compare_sqlite_and_parquet()
test_03_i3_deployer_example()
test_04_i3_module_in_native_icetray_example()
7 changes: 7 additions & 0 deletions tests/examples/02_data/test_data_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ def test_03_convert_parquet_to_sqlite() -> None:
def test_04_ensemble_dataset() -> None:
"""Test for 04_ensemble_dataset."""
runpy.run_path(os.path.join(EXAMPLE_PATH, "04_ensemble_dataset.py"))


if __name__ == "__main__":
test_01_read_dataset()
test_02_plot_feature_distribution()
test_03_convert_parquet_to_sqlite()
test_04_ensemble_dataset()
5 changes: 5 additions & 0 deletions tests/examples/03_weights/test_weights_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ def test_01_fit_uniform_weights() -> None:
def test_02_fit_bjoern_low_weights() -> None:
"""Test for 02_fit_bjoern_low_weights."""
runpy.run_path(os.path.join(EXAMPLE_PATH, "02_fit_bjoern_low_weights.py"))


if __name__ == "__main__":
test_01_fit_uniform_weights()
test_02_fit_bjoern_low_weights()
7 changes: 7 additions & 0 deletions tests/examples/04_training/test_training_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ def test_04_train_multiclassifier_from_configs() -> None:
runpy.run_path(
os.path.join(EXAMPLE_PATH, "04_train_multiclassifier_from_configs.py")
)


if __name__ == "__main__":
test_01_train_dynedge()
test_02_train_tito_model()
test_03_train_dynedge_from_config()
test_04_train_multiclassifier_from_configs()

0 comments on commit 9d2eb14

Please sign in to comment.