Rework into a testable, modern app

This commit is contained in:
2024-08-16 12:11:50 +01:00
parent 5862b259d1
commit aa17b60400
10 changed files with 335 additions and 69 deletions

13
tests/conftest.py Normal file
View File

@@ -0,0 +1,13 @@
import pytest
import yaml
from simple_webfinger.app import create_app
@pytest.fixture(scope="module")
def app():
app = create_app()
app.webfinger_config = yaml.load(
open("examples/example-config.yaml", "r"), yaml.SafeLoader
)
yield app