mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 17:09:16 +02:00
Tmpfile fixture
This commit is contained in:
parent
168b2f03d4
commit
adcbe8852d
1 changed files with 5 additions and 0 deletions
|
@ -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']()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue