Skip to content

Commit

Permalink
Merge pull request #28 from timcallow/fix_tests_error
Browse files Browse the repository at this point in the history
Attempt to fix test errors
  • Loading branch information
timcallow authored Jan 7, 2025
2 parents c51616b + 296ee51 commit eb1e8ea
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions datalad_slurm/tests/test_register.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
from datalad.tests.utils_pytest import assert_result_count

import datalad.support.exceptions as dl_exceptions

def test_register():
import datalad.api as da
assert hasattr(da, 'schedule')
assert hasattr(da, 'finish')
assert hasattr(da, 'reschedule')
assert_result_count(
da.schedule(),
da.schedule(cmd="echo test", dry_run="basic"),
1,
action='demo')
status="ok")
assert_result_count(
da.finish(),
1,
action='demo')
assert_result_count(
da.reschedule(),
1,
action='demo')

0,
status="ok")
try:
da.reschedule(since="HEAD~1", report=True)
assert False
except dl_exceptions.IncompleteResultsError:
assert True

0 comments on commit eb1e8ea

Please sign in to comment.