Files
MSE-CyberSec-DevSecOps/src/tests/conftest.py
2025-03-18 10:14:08 +01:00

13 lines
385 B
Python

import pytest
from app import app
# see documentation under https://flask.palletsprojects.com/en/2.0.x/testing/
# the client here allow to use the app without running in live server
# see https://flask.palletsprojects.com/en/2.0.x/testing/#sending-requests-with-the-test-client # noqa: E501
@pytest.fixture
def client():
app.config['TESTING'] = True
yield app.test_client()