generated from datalad/datalad-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from timcallow/fix_tests_error
Attempt to fix test errors
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |