Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Aug 5, 2024
1 parent cab1169 commit 5e59778
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/operations/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from dacapo.experiments import Run
from dacapo.store.create_store import create_config_store, create_weights_store
from dacapo import validate
from dacapo import validate_run

import pytest
from pytest_lazy_fixtures import lf
Expand Down Expand Up @@ -56,13 +56,13 @@ def test_validate(

# test validating iterations for which we know there are weights
weights_store.store_weights(run, 0)
validate(run.name, 0, num_workers=4)
validate_run(run_config.name, 0, num_workers=4)
# weights_store.store_weights(run, 1)
# validate(run_config.name, 1, num_workers=4)
# validate_run(run_config.name, 1, num_workers=4)

# test validating weights that don't exist
with pytest.raises(FileNotFoundError):
validate(run.name, 2, num_workers=4)
validate_run(run_config.name, 2, num_workers=4)

if debug:
os.chdir(old_path)

0 comments on commit 5e59778

Please sign in to comment.