Skip to content
Snippets Groups Projects
Verified Commit adcbe885 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Tmpfile fixture

parent 168b2f03
No related branches found
No related tags found
No related merge requests found
......@@ -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']()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment