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

Tmpfile fixture

parent 168b2f03
......@@ -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']()
......
Markdown is supported
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