Spaces:
Runtime error
Runtime error
Download tests/conftest.py from empirenexus/WritingStudio: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/spaces/empirenexus/WritingStudio/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/empirenexus/WritingStudio/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/empirenexus/WritingStudio/resolve/main/tests/conftest.py
651 Bytes
| """Pytest configuration and fixtures.""" | |
| import pytest | |
| import os | |
| # Set test environment variables | |
| os.environ["ENVIRONMENT"] = "development" | |
| os.environ["DEBUG"] = "true" | |
| os.environ["LOG_LEVEL"] = "DEBUG" | |
| def sample_text(): | |
| """Sample text for testing.""" | |
| return """This is a sample text for testing purposes. It contains multiple sentences | |
| to demonstrate various aspects of writing analysis. | |
| The text includes paragraphs and transitions. Furthermore, it provides examples | |
| according to best practices.""" | |
| def sample_model_name(): | |
| """Sample model name for testing.""" | |
| return "distilgpt2" | |