Skip to content

ProjectTester (pytest)

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

Subclassing Example

# myapp/dev/management/project_tester.py
from pyrig.dev.management.project_tester import ProjectTester as BasePT
from pyrig.src.processes import Args

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