Skip to content

ProjectTester (pytest)

Type-safe wrapper for pytest, the Python testing framework.

Subclassing Example

# myapp/rig/tools/project_tester.py
from pyrig.rig.tools.project_tester import ProjectTester as BasePT
from pyrig.src.processes import Args

class ProjectTester(BasePT):
    def run_tests_in_ci_args(self, *args: str) -> Args:
        # Add parallel execution
        return super().run_tests_in_ci_args("-n", "auto", *args)