Pytest.fix local tests

From gpsaggese/helpers · View interactive version

Pytest.fix local tests is an AI agent skill from the GitHub repository gpsaggese/helpers. Analyze and fix failure of local tests

How to use this skill

Skill file

Goal

cause, and fix them

Workflow

Run Tests

```bash

> pytest_log <FAILURE_INFO>

> tmp.pytest_failed_multi_build.repro.sh

```

Analyze Failures

```bash

> i pytest_failed

...

Failed tests: 25/7

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_actions::test1

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_actions::test2

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_edge_cases::test1

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_edge_cases::test2

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_edge_cases::test3

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_edge_cases::test4

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test1

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test2

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test3

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test4

dev_scripts_helpers/documentation/test/test_notes_to_pdf.py::Test_notes_to_pdf_filters::test5

...

13:07:36 - WARN lib_tasks_pytest.py pytest_failed:1745 To run the failed tests run: tmp.pytest_failed.sh

...

```

per ## Analyze the Effect of Container Builds in

.claude/skills/pytest.rules.md

Prepare A Plan to Fix Failures

.claude/skills/pytest.rules.md

Implement and Verify the Fix

implementing anything

.claude/skills/pytest.rules.md

Verification

.claude/skills/pytest.rules.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.