[ENH] Include tests for the queue command #110
No reviewers
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer!110
Loading…
Reference in a new issue
No description provided.
Delete branch "update/queue-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
julearn.api.functions.queueandjulearn.api.functions._queue_condorare currently not tested.The functionality should be tested. At least that the YAML file is created, the submit file is somehow correct, the executable file is there, etc etc.
To consider:
It will be ideal if we can check the validity of the submit file according to htcondor syntax.
Codecov Report
95.07% <75.00%> (+4.07%)Flags with carried forward coverage won't be shown. Click here to find out more.
97.98% <75.00%> (+61.74%)Can you add to the
queuetest a check for the YAML file? It should have all the fields from the original config but thequeuesection.Can you also add a test for
_queue_condorchecking that the:@ -151,0 +356,4 @@monkeypatch: pytest.MonkeyPatch,caplog: pytest.LogCaptureFixture,elements: Union[str, List[Union[str, Tuple[str]]], Tuple[str]],) -> None:Can you assert that the file is present in the jobdir?
@ -151,0 +374,4 @@with monkeypatch.context() as m:m.chdir(tmp_path)with caplog.at_level(logging.INFO):queue(Can you add elements that are tuples? Like
[("sub-001", "ses-001"),("sub-001", "ses-002")]@ -151,0 +356,4 @@monkeypatch: pytest.MonkeyPatch,caplog: pytest.LogCaptureFixture,elements: Union[str, List[Union[str, Tuple[str]]], Tuple[str]],) -> None:Done.
@ -151,0 +374,4 @@with monkeypatch.context() as m:m.chdir(tmp_path)with caplog.at_level(logging.INFO):queue(Done.
@fraimondo I believe I have addressed your comments.
Excellent!