Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
f7427452
Commit
f7427452
authored
6 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TEST: Fix test
parent
6ee15132
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_settings.py
+10
-10
10 additions, 10 deletions
tests/test_settings.py
with
10 additions
and
10 deletions
tests/test_settings.py
+
10
−
10
View file @
f7427452
...
...
@@ -458,14 +458,14 @@ def test_set():
settings
.
set
(
s1
)
with
settings
.
writeFile
(
'
file3
'
)
as
f
:
f
.
write
(
'
hi!
'
)
assert
os
.
listdir
(
td1
)
==
[
'
file1
'
,
'
file3
'
]
assert
os
.
listdir
(
td2
)
==
[
'
file2
'
]
assert
sorted
(
os
.
listdir
(
td1
)
)
==
[
'
file1
'
,
'
file3
'
]
assert
os
.
listdir
(
td2
)
==
[
'
file2
'
]
settings
.
set
(
s2
)
with
settings
.
writeFile
(
'
file4
'
)
as
f
:
f
.
write
(
'
hi!
'
)
assert
os
.
listdir
(
td1
)
==
[
'
file1
'
,
'
file3
'
]
assert
os
.
listdir
(
td2
)
==
[
'
file2
'
,
'
file4
'
]
assert
sorted
(
os
.
listdir
(
td1
)
)
==
[
'
file1
'
,
'
file3
'
]
assert
sorted
(
os
.
listdir
(
td2
)
)
==
[
'
file2
'
,
'
file4
'
]
def
test_use
():
...
...
@@ -495,15 +495,15 @@ def test_use():
with
settings
.
writeFile
(
'
file4
'
)
as
f
:
f
.
write
(
'
hi!
'
)
assert
os
.
listdir
(
td1
)
==
[
'
file1
'
,
'
file3
'
]
assert
os
.
listdir
(
td2
)
==
[
'
file2
'
,
'
file4
'
]
assert
sorted
(
os
.
listdir
(
td1
)
)
==
[
'
file1
'
,
'
file3
'
]
assert
sorted
(
os
.
listdir
(
td2
)
)
==
[
'
file2
'
,
'
file4
'
]
# should go back to s1
with
settings
.
writeFile
(
'
file5
'
)
as
f
:
f
.
write
(
'
hi!
'
)
assert
os
.
listdir
(
td1
)
==
[
'
file1
'
,
'
file3
'
,
'
file5
'
]
assert
os
.
listdir
(
td2
)
==
[
'
file2
'
,
'
file4
'
]
assert
sorted
(
os
.
listdir
(
td1
)
)
==
[
'
file1
'
,
'
file3
'
,
'
file5
'
]
assert
sorted
(
os
.
listdir
(
td2
)
)
==
[
'
file2
'
,
'
file4
'
]
try
:
with
settings
.
use
(
s2
):
...
...
@@ -515,5 +515,5 @@ def test_use():
with
settings
.
writeFile
(
'
file6
'
)
as
f
:
f
.
write
(
'
hi!
'
)
assert
os
.
listdir
(
td1
)
==
[
'
file1
'
,
'
file3
'
,
'
file5
'
,
'
file6
'
]
assert
os
.
listdir
(
td2
)
==
[
'
file2
'
,
'
file4
'
]
assert
sorted
(
os
.
listdir
(
td1
)
)
==
[
'
file1
'
,
'
file3
'
,
'
file5
'
,
'
file6
'
]
assert
sorted
(
os
.
listdir
(
td2
)
)
==
[
'
file2
'
,
'
file4
'
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment