{"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":[{"wrong":"from tdd_guard_pytest.plugin import TDDGuardPlugin","symbol":"TDDGuardPlugin","correct":"from tdd_guard_pytest 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,"search_vec":"'0.1.2':21 '3.8':24 'current':19 'develop':15 'driven':14 'ecosystem':32 'enforc':11 'guard':3,9,31,41 'part':27 'plugin':6,40 'principl':16 'pytest':4,5,39 'pytest-plugin':38 'python':23 'releas':25,33 'requir':22 'sporad':35 'tdd':2,8,30,36 'tdd-guard-pytest':1 'test':13,18,37 'test-driven':12 'version':20","created_at":"2026-05-01T08:14:24.159133+00:00","updated_at":"2026-05-01T08:14:24.159133+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'TDDGuardPlugin' from 'tdd_guard_pytest' (/tmp/tmprnjpqz91/venv/lib/python3.12/site-packages/tdd_guard_pytest/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.1.2","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/nizos/tdd-guard","docs":"https://github.com/nizos/tdd-guard/tree/main/reporters/pytest","changelog":null,"pypi":"https://pypi.org/project/tdd-guard-pytest/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}