Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
installer
Commits
eaa746ae
Commit
eaa746ae
authored
Jul 26, 2021
by
Paul McCarthy
🚵
Browse files
TEST: test download_file with local file path
parent
701961f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_routines.py
View file @
eaa746ae
...
...
@@ -168,6 +168,14 @@ def test_download_file():
with
open
(
'copy'
,
'rt'
)
as
f
:
assert
f
.
read
()
==
'hello
\n
'
# download_file should also work
# with a path to a local file
os
.
remove
(
'copy'
)
inst
.
download_file
(
'file'
,
'copy'
)
with
open
(
'copy'
,
'rt'
)
as
f
:
assert
f
.
read
()
==
'hello
\n
'
def
test_patch_file
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment