"""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" @pytest.fixture 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.""" @pytest.fixture def sample_model_name(): """Sample model name for testing.""" return "distilgpt2"