{"id":24688,"library":"tdd-guard-pytest","title":"tdd-guard-pytest","description":"Pytest plugin for TDD Guard that enforces Test-Driven Development principles during testing. Current version 0.1.2, requires Python >=3.8. Released as part of the TDD Guard ecosystem; releases are sporadic.","status":"active","version":"0.1.2","language":"python","source_language":"en","source_url":"https://github.com/nizos/tdd-guard","tags":["tdd","testing","pytest-plugin","guard"],"install":[{"cmd":"pip install tdd-guard-pytest","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required as a plugin host","package":"pytest","optional":false}],"imports":[{"note":"The main plugin class; ensure correct case.","symbol":"TDDGuardPlugin","correct":"from tdd_guard_pytest.plugin import TDDGuardPlugin"}],"quickstart":{"code":"import pytest\n\n# Ensure TDD Guard plugin is installed (auto-registered via entry point)\n# Run tests with: pytest --tdd-guard\n\ndef test_example():\n    assert 1 + 1 == 2\n","lang":"python","description":"After installation, use `pytest --tdd-guard` to enable TDD Guard validation. The plugin auto-detects install."},"warnings":[{"fix":"Install the TDD Guard CLI: npm install -g tdd-guard","message":"The plugin requires the 'tdd-guard' main package installed separately (npm package). Without it, the pytest plugin may not function as expected.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'import tdd_guard_pytest' or 'from tdd_guard_pytest import ...'","message":"The package name uses hyphens but the import path uses underscores (tdd_guard_pytest). A common mistake is to use hyphens in imports.","severity":"breaking","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'import tdd_guard_pytest' (underscores) instead of 'import tdd-guard-pytest'.","cause":"Trying to import using hyphens instead of underscores.","error":"ModuleNotFoundError: No module named 'tdd-guard-pytest'"},{"fix":"Ensure 'tdd-guard-pytest' is installed in the same environment as pytest. Run 'pip install tdd-guard-pytest'.","cause":"The plugin is not installed or not activated (missing entry point).","error":"pytest: error: unrecognized arguments: --tdd-guard"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}