Skip to content

Commit

Permalink
tests should be run manually
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Dec 2, 2024
1 parent 006b6c9 commit 92d15ae
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def teardown_module(raise_if_error=True):
raise e


def test_datasets():
def _test_datasets():
# assert run("anemoi-registry", "datasets", TMP_DATASET) == 1
run("anemoi-registry", "datasets", TMP_DATASET)
run("anemoi-registry", "datasets", TMP_DATASET, "--set-recipe", TMP_RECIPE)
Expand Down Expand Up @@ -161,7 +161,7 @@ def test_datasets():
run("anemoi-registry", "update", "--zarr-file-from-catalogue", TMP_DATASET_PATH, "--force")


def test_weights():
def _test_weights():
# assert run("anemoi-registry", "weights", "a5275e04-0000-0000-a0f6-be19591b09fe") == 1
run("anemoi-registry", "weights", "a5275e04-0000-0000-a0f6-be19591b09fe")
run(
Expand All @@ -175,28 +175,28 @@ def test_weights():
)


def test_experiments():
def _test_experiments():
run("anemoi-registry", "experiments", "i4df")
run("anemoi-registry", "experiments", "i4df", "--add-plots", "./dummy-quaver.pdf")
run("anemoi-registry", "experiments", "i4df", "--add-weights", "./dummy-checkpoint.ckpt")


def test_list_commands():
def _test_list_commands():
run("anemoi-registry", "list", "experiments")
run("anemoi-registry", "list", "weights")
run("anemoi-registry", "list", "datasets")


if __name__ == "__main__":
test_list_commands()
_test_list_commands()
print()

errors = []

print("# Start setup")
setup_datasets()
try:
test_datasets()
_test_datasets()
finally:
print("# Start teardown")
teardown_datasets(errors)
Expand All @@ -206,7 +206,7 @@ def test_list_commands():
print("# Start setup")
setup_experiments()
try:
test_experiments()
_test_experiments()
finally:
print("# Start teardown")
teardown_experiments(errors)
Expand All @@ -216,7 +216,7 @@ def test_list_commands():
print("# Start setup")
setup_checkpoints()
try:
test_weights()
_test_weights()
finally:
print("# Start teardown")
teardown_checkpoints(errors)
Expand Down

0 comments on commit 92d15ae

Please sign in to comment.