☰
Debian Codegraph
@
0.20.0-5
/
/
examples
/
blog
/
tests
/
conftest.py
☽
☼
examples/blog/tests/conftest.py
code
plain
raw
Expat
2017-2024 Philip G Jones <
[email protected]
>
debian/copyright
1
import pytest
2
from blog import app
3
from blog import init_db
4
5
6
@pytest.fixture(autouse=True)
7
def configure_db(tmpdir):
8
app.config["DATABASE"] = str(tmpdir.join("blog.db"))
9
init_db()