We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--force
1 parent a536ed3 commit 3af4bd8Copy full SHA for 3af4bd8
nibabel/cmdline/tests/test_conform.py
@@ -32,6 +32,12 @@ def test_default(tmpdir):
32
assert c.header.get_zooms() == (1, 1, 1)
33
assert nib.orientations.aff2axcodes(c.affine) == ('R', 'A', 'S')
34
35
+ with pytest.raises(FileExistsError):
36
+ main([str(infile), str(outfile)])
37
+
38
+ main([str(infile), str(outfile), "--force"])
39
+ assert outfile.isfile()
40
41
42
@needs_scipy
43
def test_nondefault(tmpdir):
0 commit comments