mirror of
https://codeberg.org/Ewen/rudibridge.git
synced 2024-10-22 17:11:21 +00:00
Ewen
94547f2031
- added tests (pytest) - use GET parameters to parse a page - return an actual RSS feed
15 lines
228 B
Python
15 lines
228 B
Python
import pytest
|
|
from api import create_app
|
|
|
|
@pytest.fixture()
|
|
def app():
|
|
app = create_app()
|
|
app.config.update({
|
|
"TESTING": True
|
|
})
|
|
|
|
yield app
|
|
|
|
@pytest.fixture()
|
|
def client(app):
|
|
return app.test_client() |