Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[DATALAD RUNCMD] rename hasnt var into hasnot to make codespell happier
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "git-sedi hasnt hasnot",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information
yarikoptic committed Mar 9, 2023
commit 761b620d7a3af3c3711678c1ea1c967b33fde1d5
12 changes: 6 additions & 6 deletions nipype/interfaces/base/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,28 +288,28 @@ class WithoutInput(WithInput):
_version = "0.6"

has = WithInput()
hasnt = WithoutInput()
hasnot = WithoutInput()
trying_anyway = WithoutInput(foo=3)
assert has.inputs.foo == 3
assert not nib.isdefined(hasnt.inputs.foo)
assert not nib.isdefined(hasnot.inputs.foo)
assert trying_anyway.inputs.foo == 3

has.run()
hasnt.run()
hasnot.run()
with pytest.raises(Exception):
trying_anyway.run()

# Still settable
has.inputs.foo = 4
hasnt.inputs.foo = 4
hasnot.inputs.foo = 4
trying_anyway.inputs.foo = 4
assert has.inputs.foo == 4
assert hasnt.inputs.foo == 4
assert hasnot.inputs.foo == 4
assert trying_anyway.inputs.foo == 4

has.run()
with pytest.raises(Exception):
hasnt.run()
hasnot.run()
with pytest.raises(Exception):
trying_anyway.run()

Expand Down