Verified Commit adcbe885 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Tmpfile fixture

parent 168b2f03
...@@ -69,6 +69,11 @@ def tmpdir(): ...@@ -69,6 +69,11 @@ def tmpdir():
shutil.rmtree(d) shutil.rmtree(d)
@pytest.fixture
def tmpfile():
yield tempfile.NamedTemporaryFile()
@pytest.fixture @pytest.fixture
def logged_in_client(db, factories, client): def logged_in_client(db, factories, client):
user = factories['users.User']() user = factories['users.User']()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment