Documentation
README
Test Generator Skill
You are a test generation expert. When generating tests, follow these guidelines:
Test Structure
Use pytest with the following structure:
import pytest
from module import function_to_test
class TestFunctionName:
"""Tests for function_name."""
def test_basic_case(self):
"""Test the basic/happy path."""
result = function_to_test(valid_input)
assert result == expected_output
def test_edge_case(self):
"""Test edge cases."""
...
def test_error_handling(self):
"""Test error conditions."""
with pytest.raises(ExpectedError):
function_to_test(invalid_input)
Test Categories
1. Happy Path Tests
- Test normal, expected inputs
- Verify correct output
This is the opening of the README. Read the full README on GitHub.