1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

put fixtures into conftest

This commit is contained in:
Bastian Venthur
2021-03-29 11:59:43 +02:00
parent 03663a855d
commit d227392c79
3 changed files with 6 additions and 59 deletions

View File

@@ -1,17 +1,8 @@
import time
import pytest
from tempfile import TemporaryDirectory
from blag import devserver
@pytest.fixture
def tempdir():
with TemporaryDirectory() as dir:
yield dir
def test_get_last_modified(tempdir):
# take initial time
t1 = devserver.get_last_modified([tempdir])