mirror of
https://github.com/ndrscalia/asciify-them.git
synced 2026-02-19 23:24:03 -05:00
Tests for asciify
This directory contains the test suite for the asciify package.
Disclaimer: this test suite has been created with the aid of claude-code and then revised by the software's author.
Test Structure
conftest.py- Shared pytest fixtures (test images)test_core.py- Tests for the mainasciify()functiontest_process.py- Tests for theImgProcessorclasstest_renderer.py- Tests for theRendererclass
Running Tests
Install test dependencies.
pip install -e ".[dev]"
Run all tests.
pytest
Run with coverage report.
pytest --cov=asciify --cov-report=html
Then open htmlcov/index.html in your browser to see detailed coverage.
Run specific test file.
pytest tests/test_core.py
Run specific test.
pytest tests/test_core.py::TestAsciify::test_asciify_returns_string