Spaces:
Sleeping
Sleeping
Download tests/conftest.py from Gauthier76/Markdown: direct link, hf CLI and curl.
- Browser
- Download file 258 Bytes
-
https://huggingface.co/spaces/Gauthier76/Markdown/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/Gauthier76/Markdown/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/Gauthier76/Markdown/resolve/main/tests/conftest.py
258 Bytes
| """Fixtures partagées pour les tests.""" | |
| import pytest | |
| from app import app as flask_app | |
| def client(): | |
| """Client de test Flask.""" | |
| flask_app.config["TESTING"] = True | |
| with flask_app.test_client() as client: | |
| yield client | |