spiderweb/conftest.py

13 lines
270 B
Python
Raw Normal View History

2024-08-26 01:56:08 -04:00
import os
from pytest import fixture
@fixture(autouse=True, scope="session")
def db():
if os.path.exists("spiderweb-tests.db"):
os.remove("spiderweb-tests.db")
yield
if os.path.exists("spiderweb-tests.db"):
os.remove("spiderweb-tests.db")