Skip to content

Commit

Permalink
Fix remaining issues
Browse files Browse the repository at this point in the history
  • Loading branch information
timcallow committed Jan 7, 2025
1 parent 32b2c53 commit 296ee51
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions datalad_slurm/tests/test_register.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datalad.tests.utils_pytest import assert_result_count

import datalad.support.exceptions as dl_exceptions

def test_register():
import datalad.api as da
Expand All @@ -9,13 +9,13 @@ def test_register():
assert_result_count(
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(since="HEAD~1", report=True),
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 296ee51

Please sign in to comment.