mirror of
https://github.com/nikdoof/simple-webfinger.git
synced 2025-12-13 10:22:15 +00:00
Rework into a testable, modern app
This commit is contained in:
13
tests/conftest.py
Normal file
13
tests/conftest.py
Normal 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
|
||||
Reference in New Issue
Block a user