sort-of-pastebin/conftest.py

10 lines
151 B
Python

import pytest
import src.main as snapbin
@pytest.fixture()
def app():
snapbin.app.config["TESTING"] = True
return snapbin.app.test_client()