Testing.reorder

From causify-ai/helpers · View interactive version

Testing.reorder is an AI agent skill from the GitHub repository causify-ai/helpers. Reorganize test classes and functions to match the order of the tested code

How to use this skill

Skill file

Goal

*/test/test_*.py to match the order of the functions they test in the

corresponding source file

Conventions

Workflow

Find Test Code

test/test_<FILENAME>.py

Prepare a Plan

Order the Testing Classes in the Same Order as the Python File

functions declared in <FILENAME>.py

```python

def test1(...)

def test2(...)

```

the corresponding .../test/test_file.py

```python

class Test_test1(...)

class Test_test2(...)

```

Preserve Behavior Exactly

semantics

Move Code Only

Implement the Plan

Verification

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.