Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
interfect
funkwhale
Commits
adcbe885
Verified
Commit
adcbe885
authored
Apr 16, 2018
by
Eliot Berriot
Browse files
Tmpfile fixture
parent
168b2f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
api/tests/conftest.py
View file @
adcbe885
...
...
@@ -69,6 +69,11 @@ def tmpdir():
shutil
.
rmtree
(
d
)
@
pytest
.
fixture
def
tmpfile
():
yield
tempfile
.
NamedTemporaryFile
()
@
pytest
.
fixture
def
logged_in_client
(
db
,
factories
,
client
):
user
=
factories
[
'users.User'
]()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment