{
  "id": "task_libraries:testing/python",
  "path": "/exapedia/python-testing-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python testing libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python testing libraries run automated checks against code, from a single function to a full acceptance scenario. A test runner discovers test functions or scenarios, runs them, and reports each failed assertion. These libraries let developers catch regressions before code reaches production."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python testing libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pytest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hypothesis",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#parameterized",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#behave",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#robot-framework",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyhamcrest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#testfixtures",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ddt",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#pytest",
          "label": [
            {
              "t": "text",
              "text": "pytest"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F129"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Declared input cases",
            "Property-based generation"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pytest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hypothesis",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F146"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#parameterized",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#behave",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#robot-framework",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyhamcrest",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#testfixtures",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ddt",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "pytest",
          "name": [
            {
              "t": "fact",
              "fact": "F128"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pytest-dev/pytest"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pytest"
            },
            {
              "label": "Docs",
              "href": "https://docs.pytest.org/en/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F13"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.pytest.org/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F21"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/pytest-dev/pytest-mock",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def pytest_addoption(parser: Any) -> None:\n    parser.addini(\n        \"mock_traceback_monkeypatch\",\n        \"Monkeypatch the mock library to improve reporting of the \"\n        \"assert_called_... methods\",\n        default=True,\n    )\n    parser.addini(\n        \"mock_use_standalone_module\",\n        'Use standalone \"mock\" (from PyPI) instead of builtin \"unittest.mock\" '\n        \"on Python 3\",\n        default=False,\n    )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/pytest-dev/pytest-mock/blob/78e4a642a74b27f02b90b10a67a98c2f50f50b5e/src/pytest_mock/plugin.py#L762-L774",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20pytest%20for%20plugin%20configuration%2C%20generated%20API%20request%20cases%20and%20test%20listener%20lifecycle%20handling&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pytest\n\ndef test_addition():\n    assert 1 + 1 == 2\n\nif __name__ == \"__main__\":\n    raise SystemExit(pytest.main([__file__, \"-q\"]))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.pytest.org/en/stable/getting-started.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "hypothesis",
          "name": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/HypothesisWorks/hypothesis"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/hypothesis"
            },
            {
              "label": "Docs",
              "href": "https://hypothesis.readthedocs.io/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://hypothesis.readthedocs.io/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/schemathesis/schemathesis",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _draw_body_media_type(draw: st.DrawFn, operation: APIOperation, parameter: OpenApiBody) -> str:\n    # Parameter may have a wildcard media type. In this case, choose any supported one\n    try:\n        possible_media_types = sorted(\n            operation.schema.transport.get_matching_media_types(parameter.media_type), key=lambda x: x[0]\n        )\n    except MalformedMediaType as exc:\n        raise InvalidSchema.from_malformed_media_type(\n            exc, parameter.media_type, path=operation.path, method=operation.method\n        ) from exc\n    if not possible_media_types:\n        all_media_types = operation.schema.get_request_payload_content_types(operation)\n        if all(\n            operation.schema.transport.get_first_matching_media_type(media_type) is None\n            for media_type in all_media_types\n        ):\n            # No media type of this operation is supported\n            raise SerializationNotPossible.from_media_types(*all_media_types) from None\n        # Other media types are possible - avoid choosing this media type in the future\n        event_text = f\"Can't serialize data to `{parameter.media_type}`.\"\n        note(f\"{event_text} {SERIALIZERS_SUGGESTION_MESSAGE}\")\n        event(event_text)\n        reject()\n    media_type, _ = draw(st.sampled_from(possible_media_types))\n    return media_type\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/schemathesis/schemathesis/blob/d44b74cc66bf1ae760c7238060ffc31e51dcfe51/src/schemathesis/specs/openapi/_hypothesis.py#L353-L377",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20hypothesis%20for%20plugin%20configuration%2C%20generated%20API%20request%20cases%20and%20test%20listener%20lifecycle%20handling&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F146"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from hypothesis import given, strategies as st\n\n@given(st.lists(st.integers()))\ndef test_sorted_length(values):\n    assert len(sorted(values)) == len(values)\n\ntest_sorted_length()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://hypothesis.readthedocs.io/en/latest/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "quickstart.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "parameterized",
          "name": [
            {
              "t": "fact",
              "fact": "F164"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/wolever/parameterized"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/parameterized"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F171"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/wolever/parameterized",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F164"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import unittest\nfrom parameterized import parameterized\n\nclass AdditionTests(unittest.TestCase):\n    @parameterized.expand([(1, 2, 3), (2, 3, 5)])\n    def test_addition(self, left, right, expected):\n        self.assertEqual(left + right, expected)\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/wolever/parameterized/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=parameterized%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F164"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F169"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "behave",
          "name": [
            {
              "t": "fact",
              "fact": "F180"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/behave/behave"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/behave"
            },
            {
              "label": "Docs",
              "href": "https://behave.readthedocs.io/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F187"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://behave.readthedocs.io/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F180"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "mkdir -p features/steps\ncat > features/example.feature <<'EOF'\nFeature: Arithmetic\n  Scenario: Add two numbers\n    Given two numbers are added\nEOF\ncat > features/steps/example.py <<'EOF'\nfrom behave import given\n\n@given(\"two numbers are added\")\ndef step_add(context):\n    assert 1 + 1 == 2\nEOF\nbehave\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://behave.readthedocs.io/en/latest/tutorial/",
                  "label": [
                    {
                      "t": "text",
                      "text": "tutorial.rst"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=behave%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F180"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F185"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "robot-framework",
          "name": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/robotframework/robotframework"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/robotframework"
            },
            {
              "label": "Docs",
              "href": "https://robotframework.org/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F64"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://robotframework.org/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/robocorp/rpaframework",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def end_keyword(self, name, attributes):  # pylint: disable=W0613\n    \"\"\"Listener method for keyword end.\n\n    :param name: keyword name\n    :param attributes: keyword attributes\n\n    If `name` exists in the protected keywords list then log level is\n    restored back to level it was before settings to NONE.\n    \"\"\"\n    if not self._is_robot_running():\n        return\n\n    normalized = self._normalize(name)\n\n    if self.stack and self.stack[-1][0] == normalized:\n        _, old = self.stack.pop()\n        BuiltIn().set_log_level(old)\n\n    # Run-on-failure\n\n    if normalized != self.muted_keyword:\n        return\n\n    self.logger.debug(\"Un-muting failures after keyword: %s\", name)\n    for library, _ in self.muted_optionals:\n        previous = self.muted_previous.get(library.__class__.__name__)\n        if previous:\n            library.register_keyword_to_run_on_failure(previous)\n\n    self.muted_keyword = None\n    self.muted_previous = {}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/robocorp/rpaframework/blob/28d63f055bd60afbd8b65d6d0471835d577c40a2/packages/core/src/RPA/core/logger.py#L266-L296",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20robotframework%20for%20plugin%20configuration%2C%20generated%20API%20request%20cases%20and%20test%20listener%20lifecycle%20handling&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from robot.api import TestSuite\n\nsuite = TestSuite(\"Example\")\ntest = suite.tests.create(\"Values match\")\ntest.body.create_keyword(\"Should Be Equal\", args=[\"hello\", \"hello\"])\nresult = suite.run()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://robot-framework.readthedocs.io/en/stable/autodoc/robot.running.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "robot.running.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyhamcrest",
          "name": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/hamcrest/PyHamcrest"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/PyHamcrest"
            },
            {
              "label": "Docs",
              "href": "https://pyhamcrest.readthedocs.io/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pyhamcrest.readthedocs.io/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from hamcrest import assert_that, equal_to\n\nassert_that(1 + 1, equal_to(2))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pyhamcrest.readthedocs.io/en/latest/tutorial.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "tutorial.rst"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=PyHamcrest%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F213"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F218"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "testfixtures",
          "name": [
            {
              "t": "fact",
              "fact": "F228"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/simplistix/testfixtures"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/testfixtures"
            },
            {
              "label": "Docs",
              "href": "https://testfixtures.readthedocs.io/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F235"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://testfixtures.readthedocs.io/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F228"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from testfixtures import compare\n\ncompare({\"answer\": 42}, {\"answer\": 42})\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/simplistix/testfixtures/blob/main/docs/comparing.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "comparing.rst"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=testfixtures%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F228"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F233"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "ddt",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/datadriventests/ddt"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/ddt"
            },
            {
              "label": "Docs",
              "href": "https://ddt.readthedocs.io/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F251"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://ddt.readthedocs.io/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import unittest\nfrom ddt import ddt, data\n\n@ddt\nclass PositiveTests(unittest.TestCase):\n    @data(1, 2, 3)\n    def test_positive(self, value):\n        self.assertGreater(value, 0)\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/datadriventests/ddt/blob/eae90056afa216255e824e503e9511ba3037a60b/test/test_example.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "test_example.py"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=ddt%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python testing framework should I use?",
      "a": [
        {
          "t": "link",
          "href": "#pytest",
          "label": [
            {
              "t": "text",
              "text": "pytest"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits most projects, with composable fixtures and parameterized cases. "
        },
        {
          "t": "link",
          "href": "#hypothesis",
          "label": [
            {
              "t": "text",
              "text": "Hypothesis"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds generated inputs and shrinks failing cases. "
        },
        {
          "t": "link",
          "href": "#robot-framework",
          "label": [
            {
              "t": "text",
              "text": "Robot Framework"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#behave",
          "label": [
            {
              "t": "text",
              "text": "behave"
            }
          ]
        },
        {
          "t": "text",
          "text": " suit keyword-driven and behavior-driven acceptance tests."
        }
      ]
    },
    {
      "q": "What is Robot Framework?",
      "a": [
        {
          "t": "link",
          "href": "#robot-framework",
          "label": [
            {
              "t": "text",
              "text": "Robot Framework"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs keyword-driven acceptance tests and automation tasks, with Python libraries exposed as reusable keywords. It stores execution results in XML or JSON."
        }
      ]
    },
    {
      "q": "pytest vs unittest: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "unittest provides class-based test cases and fixture lifecycles. "
        },
        {
          "t": "link",
          "href": "#pytest",
          "label": [
            {
              "t": "text",
              "text": "pytest"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides composable fixtures and declared argument combinations. Its fixtures cannot pass directly into unittest TestCase methods."
        }
      ]
    },
    {
      "q": "How do I run Python tests in parallel?",
      "a": [
        {
          "t": "text",
          "text": "The pytest-xdist plugin distributes pytest test execution across workers. Pabot runs Robot Framework suites in separate processes."
        }
      ]
    },
    {
      "q": "What is Hypothesis?",
      "a": [
        {
          "t": "link",
          "href": "#hypothesis",
          "label": [
            {
              "t": "text",
              "text": "Hypothesis"
            }
          ]
        },
        {
          "t": "text",
          "text": " generates test inputs from strategies and reduces failing cases to simpler examples. Its tests run through pytest."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, pytest",
      "display": "pytest",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, pytest",
      "display": "943.5M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, pytest",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, pytest",
      "display": "9.2.0, Oct 2026",
      "asOf": "2026-10-27"
    },
    "F5": {
      "label": "Package release date, pytest",
      "display": "Oct 2026",
      "asOf": "2026-10-27"
    },
    "F6": {
      "label": "Repository stars, pytest",
      "display": "14.7K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Fixtures, pytest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Parameterized cases, pytest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Property-based cases, pytest",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Parallel execution, pytest",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, pytest",
      "display": "XML",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, pytest",
      "display": "pip install pytest",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, pytest",
      "display": "Runs Python tests with assertions, reusable fixtures, parameterized cases, and plugins.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, pytest",
      "display": "Composes reusable test fixtures",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, pytest",
      "display": "Share setup and cleanup through fixtures with explicit dependency relationships.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, pytest",
      "display": "Generates predefined test cases",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, pytest",
      "display": "Run the same test function against declared argument combinations.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, pytest",
      "display": "Parallel execution needs a plugin",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, pytest",
      "display": "Use pytest-xdist to distribute tests across worker processes.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations lead, pytest",
      "display": "Parameter values are passed unchanged",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "limitations, pytest",
      "display": "Copy mutable inputs when one parameterized case modifies them.",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Quickstart, pytest",
      "display": "# content of test_sysexit.py\nimport pytest\n\ndef f():\n    raise SystemExit(1)\n\ndef test_mytest():\n    with pytest.raises(SystemExit):\n        f()\n\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function, pytest",
      "display": "def pytest_addoption(parser: Any) -> None:\n    parser.addini(\n        \"mock_traceback_monkeypatch\",\n        \"Monkeypatch the mock library to improve reporting of the \"\n        \"assert_called_... methods\",\n        default=True,\n    )\n    parser.addini(\n        \"mock_use_standalone_module\",\n        'Use standalone \"mock\" (from PyPI) instead of builtin \"unittest.mock\" '\n        \"on Python 3\",\n        default=False,\n    )\n",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project function reference, pytest",
      "display": "plugin.py · pytest_addoption()",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project repository, pytest",
      "display": "pytest-dev/pytest-mock",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project stars, pytest-dev/pytest-mock",
      "display": "2.0K",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project push date, pytest-dev/pytest-mock",
      "display": "Nov 2026",
      "asOf": "2026-11-09"
    },
    "F28": {
      "label": "Library name, hypothesis",
      "display": "Hypothesis",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Monthly downloads, hypothesis",
      "display": "68.5M",
      "asOf": "2026-11-16"
    },
    "F30": {
      "label": "License, hypothesis",
      "display": "MPL-2.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Package release, hypothesis",
      "display": "6.170.15, Nov 2026",
      "asOf": "2026-11-06"
    },
    "F32": {
      "label": "Package release date, hypothesis",
      "display": "Nov 2026",
      "asOf": "2026-11-06"
    },
    "F33": {
      "label": "Repository stars, hypothesis",
      "display": "9.2K",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Fixtures, hypothesis",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Parameterized cases, hypothesis",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Property-based cases, hypothesis",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, hypothesis",
      "display": "pip install hypothesis pytest",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, hypothesis",
      "display": "Generates test inputs from strategies and reduces failing cases to simpler examples.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, hypothesis",
      "display": "Generates constrained test inputs",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, hypothesis",
      "display": "Describe valid input data with composable strategies instead of enumerating every example.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, hypothesis",
      "display": "Shrinks failing generated cases",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, hypothesis",
      "display": "Reduce a generated failure to a smaller example that still fails.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, hypothesis",
      "display": "Fixtures persist across generated examples",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, hypothesis",
      "display": "Reset mutable fixture state inside each generated example.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, hypothesis",
      "display": "Excessive filtering triggers health checks",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, hypothesis",
      "display": "Build valid data directly when filtering rejects too many examples.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, hypothesis",
      "display": "import pytest\n\nfrom hypothesis import given, strategies as st\n\n@pytest.mark.parametrize(\"operation\", [reversed, sorted])\n@given(st.lists(st.integers()))\ndef test_list_operation_preserves_length(operation, lst):\n    assert len(lst) == len(list(operation(lst)))\n\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, hypothesis",
      "display": "def _draw_body_media_type(draw: st.DrawFn, operation: APIOperation, parameter: OpenApiBody) -> str:\n    # Parameter may have a wildcard media type. In this case, choose any supported one\n    try:\n        possible_media_types = sorted(\n            operation.schema.transport.get_matching_media_types(parameter.media_type), key=lambda x: x[0]\n        )\n    except MalformedMediaType as exc:\n        raise InvalidSchema.from_malformed_media_type(\n            exc, parameter.media_type, path=operation.path, method=operation.method\n        ) from exc\n    if not possible_media_types:\n        all_media_types = operation.schema.get_request_payload_content_types(operation)\n        if all(\n            operation.schema.transport.get_first_matching_media_type(media_type) is None\n            for media_type in all_media_types\n        ):\n            # No media type of this operation is supported\n            raise SerializationNotPossible.from_media_types(*all_media_types) from None\n        # Other media types are possible - avoid choosing this media type in the future\n        event_text = f\"Can't serialize data to `{parameter.media_type}`.\"\n        note(f\"{event_text} {SERIALIZERS_SUGGESTION_MESSAGE}\")\n        event(event_text)\n        reject()\n    media_type, _ = draw(st.sampled_from(possible_media_types))\n    return media_type\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, hypothesis",
      "display": "_hypothesis.py · _draw_body_media_type()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, hypothesis",
      "display": "schemathesis/schemathesis",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, schemathesis/schemathesis",
      "display": "3.8K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, schemathesis/schemathesis",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F53": {
      "label": "Library name, robotframework",
      "display": "Robot Framework",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, robotframework",
      "display": "3.5M",
      "asOf": "2026-11-16"
    },
    "F55": {
      "label": "License, robotframework",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, robotframework",
      "display": "7.5.1, Nov 2026",
      "asOf": "2026-11-02"
    },
    "F57": {
      "label": "Package release date, robotframework",
      "display": "Nov 2026",
      "asOf": "2026-11-02"
    },
    "F58": {
      "label": "Repository stars, robotframework",
      "display": "12.0K",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Fixtures, robotframework",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Parameterized cases, robotframework",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Parallel execution, robotframework",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Output formats, robotframework",
      "display": "XML, JSON",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, robotframework",
      "display": "pip install robotframework",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, robotframework",
      "display": "Runs keyword-driven acceptance tests and automation tasks with extensible Python libraries.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, robotframework",
      "display": "Extends through Python test libraries",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, robotframework",
      "display": "Expose Python functions as reusable test keywords.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, robotframework",
      "display": "Creates machine-readable execution results",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, robotframework",
      "display": "Write execution results as XML or JSON for downstream tools.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, robotframework",
      "display": "Parallel execution needs another runner",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, robotframework",
      "display": "Use Pabot to split suites across separate processes.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, robotframework",
      "display": "Global libraries share mutable state",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, robotframework",
      "display": "Reset state explicitly when a GLOBAL library is reused across tests.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Quickstart, robotframework",
      "display": "from robot.api import TestSuite\n\nsuite = TestSuite('Activate Skynet')\nsuite.resource.imports.library('OperatingSystem')\ntest = suite.tests.create('Should Activate Skynet', tags=['smoke'])\ntest.setup.config(name='Set Environment Variable', args=['SKYNET', 'activated'])\ntest.body.create_keyword('Environment Variable Should Be Set', args=['SKYNET'])\n\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function, robotframework",
      "display": "def end_keyword(self, name, attributes):  # pylint: disable=W0613\n    # ...\n    if not self._is_robot_running():\n        return\n\n    normalized = self._normalize(name)\n\n    if self.stack and self.stack[-1][0] == normalized:\n        _, old = self.stack.pop()\n        BuiltIn().set_log_level(old)\n\n    # Run-on-failure\n\n    if normalized != self.muted_keyword:\n        return\n\n    self.logger.debug(\"Un-muting failures after keyword: %s\", name)\n    for library, _ in self.muted_optionals:\n        previous = self.muted_previous.get(library.__class__.__name__)\n        if previous:\n            library.register_keyword_to_run_on_failure(previous)\n\n    self.muted_keyword = None\n    self.muted_previous = {}\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function reference, robotframework",
      "display": "logger.py · end_keyword()",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project repository, robotframework",
      "display": "robocorp/rpaframework",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project stars, robocorp/rpaframework",
      "display": "1.6K",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project push date, robocorp/rpaframework",
      "display": "Nov 2026",
      "asOf": "2026-11-13"
    },
    "F79": {
      "label": "Library name, unittest",
      "display": "unittest",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Monthly downloads, unittest",
      "display": "Standard library",
      "asOf": "2026-11-16"
    },
    "F81": {
      "label": "License, unittest",
      "display": "PSF-2.0",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Package release, unittest",
      "display": "With Python",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Undated package release, unittest",
      "display": "With Python",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Repository context, unittest",
      "display": "Part of Python",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Fixtures, unittest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Parameterized cases, unittest",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Property-based cases, unittest",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Install, unittest",
      "display": "python -c \"import unittest\"",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "What it does, unittest",
      "display": "Provides Python’s standard class-based test cases, fixtures, assertions, and test discovery.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, unittest",
      "display": "Provides class-based fixture lifecycles",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, unittest",
      "display": "Group assertions in test cases with setup and cleanup hooks.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, unittest",
      "display": "Runs isolated async test cases",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, unittest",
      "display": "Use IsolatedAsyncioTestCase when test functions are coroutines.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, unittest",
      "display": "Pytest fixture parameters need adaptation",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, unittest",
      "display": "Use autouse fixtures or setUp when tests inherit unittest.TestCase.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Quickstart, unittest",
      "display": "import unittest\n\nclass TestStringMethods(unittest.TestCase):\n\n    def test_upper(self):\n        self.assertEqual('foo'.upper(), 'FOO')\n\n    def test_isupper(self):\n        self.assertTrue('FOO'.isupper())\n        self.assertFalse('Foo'.isupper())\n\n    def test_split(self):\n        s = 'hello world'\n        self.assertEqual(s.split(), ['hello', 'world'])\n        # check that s.split fails when the separator is not a string\n        with self.assertRaises(TypeError):\n            s.split(2)\n\nif __name__ == '__main__':\n    unittest.main()\n\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need",
      "display": "Reusable fixture-based test suites",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Why choose pytest",
      "display": "composable test fixtures",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need in introduction",
      "display": "reusable fixture-based test suites",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "When to consider unittest",
      "display": "class-based setup and cleanup match the existing suite",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Generating input edge cases",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose hypothesis",
      "display": "strategies that generate test data",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "generating input edge cases",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "When to consider pytest",
      "display": "predefined input combinations are sufficient",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need",
      "display": "Extending acceptance-test keywords",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Why choose robotframework",
      "display": "Python modules exposed as test libraries",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need in introduction",
      "display": "extending acceptance-test keywords",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "When to consider pytest",
      "display": "Python fixture-based tests match the team’s workflow",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Class-based tests with async cases",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose unittest",
      "display": "an isolated async test case API",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "class-based tests with async cases",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "When to consider pytest",
      "display": "composable function fixtures are preferred",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Page introduction",
      "display": "Python testing libraries let developers write and run automated software tests.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Which Python testing framework should I choose?",
      "display": "pytest provides composable fixtures and declared argument combinations.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which Python testing framework should I choose?",
      "display": "Hypothesis generates inputs from strategies.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which Python testing framework should I choose?",
      "display": "Robot Framework exposes Python libraries as reusable test keywords.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which Python testing framework should I choose?",
      "display": "unittest provides class-based test cases and fixture lifecycles.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can Hypothesis work with pytest?",
      "display": "Hypothesis tests run through pytest, and property tests can also use pytest parameterization.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Can Hypothesis work with pytest?",
      "display": "Its own complete example combines pytest.mark.parametrize with generated lists.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Are pytest fixtures recreated for each Hypothesis example?",
      "display": "Function-scoped fixtures run once for the test function, not for each generated example; reset per-example state explicitly.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Will pytest copy mutable parameter values?",
      "display": "Parameter values are passed unchanged; mutations can affect later cases that reuse the same object.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: How do I run Python tests in parallel?",
      "display": "pytest-xdist distributes pytest test execution across workers.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: How do I run Python tests in parallel?",
      "display": "Pabot runs Robot Framework suites in separate processes and can split at the test level.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can unittest TestCase methods receive pytest fixture arguments?",
      "display": "TestCase methods cannot directly receive fixture arguments; use the supported autouse or setup integration patterns.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: How do I add fixed regression inputs to a Hypothesis test?",
      "display": "Use example to provide explicit inputs that run before generated inputs; explicit examples are not shrunk.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Which tools produce machine-readable test reports?",
      "display": "pytest can create an XML test-result file through its JUnitXML option.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Which tools produce machine-readable test reports?",
      "display": "Robot Framework stores execution results in XML or JSON for downstream processing.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "Library name, pytest",
      "display": "pytest",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Monthly downloads, pytest",
      "display": "977.1M",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "License, pytest",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Package release, pytest",
      "display": "9.2.0",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Package release date, pytest",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Install, pytest",
      "display": "pip install -U pytest",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Quickstart, pytest",
      "display": "import pytest\n\ndef test_addition():\n    assert 1 + 1 == 2\n\nif __name__ == \"__main__\":\n    raise SystemExit(pytest.main([__file__, \"-q\"]))\n",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Repository stars, pytest",
      "display": "14.7K",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Declared input cases, pytest",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Property-based generation, pytest",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Testing role and execution model, pytest",
      "display": "General Python test runner with composable fixtures,assert rewriting,and parametrization; plugin system supplies additional testing modes.",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Current runtime and first-call prerequisites, pytest",
      "display": "{\"requires_python\": \">=3.10\", \"setup\": [\"Save as test_example.py,then run python test_example.py. Current pytest requires Python>=3.10. __file__ is a real saved script path; the main guard prevents recursively running the runner during test collection.\"]}",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Native case behavior, pytest",
      "display": "{\"Declared input cases\": \"Native declared parameter sets generate function/class test cases; fixtures can also be parametrized.\", \"Property-based generation\": \"Hypothesis supplies generated property tests and shrinking through its pytest integration; pytest core parametrization is declared cases,not a built-in property engine.\"}",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Actual project argument and return contract, pytest",
      "display": "{\"status\": \"verified\", \"arguments\": \"Original pytest-mock plugin hook registers two ini keys through the actual pytest Parser. Current9.2 accepts name,help,and default keyword; default is Any,including these booleans without a requested coercion type. Original plugin subsequently parses its own boolean values. The parser is supplied by pytest discovery,not invented or instantiated by the example.\", \"return_shape\": \"addini returns None; both results ignored. Two sequential native registrations execute,not two mutually exclusive copies. The hook is plugin integration,not evidence a test needs mock configuration.\"}",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project function, pytest",
      "display": "def pytest_addoption(parser: Any) -> None:\n    parser.addini(\n        \"mock_traceback_monkeypatch\",\n        \"Monkeypatch the mock library to improve reporting of the \"\n        \"assert_called_... methods\",\n        default=True,\n    )\n    parser.addini(\n        \"mock_use_standalone_module\",\n        'Use standalone \"mock\" (from PyPI) instead of builtin \"unittest.mock\" '\n        \"on Python 3\",\n        default=False,\n    )\n",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project source file, pytest",
      "display": "src/pytest_mock/plugin.py",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project full_name, pytest",
      "display": "pytest-dev/pytest-mock",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project stargazers_count, pytest",
      "display": "2.0K",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Library name, hypothesis",
      "display": "Hypothesis",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Monthly downloads, hypothesis",
      "display": "71.6M",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "License, hypothesis",
      "display": "MPL-2.0",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Package release, hypothesis",
      "display": "6.170.15",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release date, hypothesis",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Install, hypothesis",
      "display": "pip install hypothesis",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Quickstart, hypothesis",
      "display": "from hypothesis import given, strategies as st\n\n@given(st.lists(st.integers()))\ndef test_sorted_length(values):\n    assert len(sorted(values)) == len(values)\n\ntest_sorted_length()\n",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Repository stars, hypothesis",
      "display": "9.2K",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Declared input cases, hypothesis",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Property-based generation, hypothesis",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Testing role and execution model, hypothesis",
      "display": "Property-based case generation and shrinking with native declared examples; integrates with pytest and unittest.",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Current runtime and first-call prerequisites, hypothesis",
      "display": "{\"requires_python\": \">=3.11\", \"setup\": [\"Python>=3.11 for current6.170.15. This self-contained property function invokes the Hypothesis wrapper directly; pytest integration is optional. Generated list elements are integers so sorting is defined.\"]}",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Native case behavior, hypothesis",
      "display": "{\"Declared input cases\": \"Native @example adds explicit input cases alongside generated ones.\", \"Property-based generation\": \"Native @given and strategies generate inputs and minimize failing examples.\"}",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Actual project argument and return contract, hypothesis",
      "display": "{\"status\": \"verified\", \"arguments\": \"Whole Schemathesis request-media strategy helper runs inside Hypothesis generation. note/event accept source-created strings; reject aborts an unsuitable case; sampled_from receives a nonempty sequence of native transport (media_type,serializer) tuples. No-elements paths raise an application error or reject before drawing. draw is the Hypothesis DrawFn supplied by the enclosing strategy,not a standalone external callback.\", \"return_shape\": \"sampled_from returns a strategy yielding one input element,so draw returns the original two-item tuple and media_type is returned. reject does not return normally. This selects supported media only; it does not guarantee arbitrary schema serialization or suppress invalid media errors.\"}",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project function, hypothesis",
      "display": "def _draw_body_media_type(draw: st.DrawFn, operation: APIOperation, parameter: OpenApiBody) -> str:\n    # Parameter may have a wildcard media type. In this case, choose any supported one\n    try:\n        possible_media_types = sorted(\n            operation.schema.transport.get_matching_media_types(parameter.media_type), key=lambda x: x[0]\n        )\n    except MalformedMediaType as exc:\n        raise InvalidSchema.from_malformed_media_type(\n            exc, parameter.media_type, path=operation.path, method=operation.method\n        ) from exc\n    if not possible_media_types:\n        all_media_types = operation.schema.get_request_payload_content_types(operation)\n        if all(\n            operation.schema.transport.get_first_matching_media_type(media_type) is None\n            for media_type in all_media_types\n        ):\n            # No media type of this operation is supported\n            raise SerializationNotPossible.from_media_types(*all_media_types) from None\n        # Other media types are possible - avoid choosing this media type in the future\n        event_text = f\"Can't serialize data to `{parameter.media_type}`.\"\n        note(f\"{event_text} {SERIALIZERS_SUGGESTION_MESSAGE}\")\n        event(event_text)\n        reject()\n    media_type, _ = draw(st.sampled_from(possible_media_types))\n    return media_type\n",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project source file, hypothesis",
      "display": "src/schemathesis/specs/openapi/_hypothesis.py",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project full_name, hypothesis",
      "display": "schemathesis/schemathesis",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project stargazers_count, hypothesis",
      "display": "3.8K",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Library name, parameterized",
      "display": "parameterized",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Monthly downloads, parameterized",
      "display": "14.5M",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "License, parameterized",
      "display": "FreeBSD",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Package release, parameterized",
      "display": "0.9.0",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Package release date, parameterized",
      "display": "Mar 2023",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Install, parameterized",
      "display": "pip install parameterized",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Quickstart, parameterized",
      "display": "import unittest\nfrom parameterized import parameterized\n\nclass AdditionTests(unittest.TestCase):\n    @parameterized.expand([(1, 2, 3), (2, 3, 5)])\n    def test_addition(self, left, right, expected):\n        self.assertEqual(left + right, expected)\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Official description, parameterized",
      "display": "Parameterizes tests in any Python test framework.",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Quickstart source file, parameterized",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Repository stars, parameterized",
      "display": "859",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Declared input cases, parameterized",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Property-based generation, parameterized",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Testing role and execution model, parameterized",
      "display": "Cross-framework declared-case decorator; .expand creates unittest-compatible named test methods.",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Current runtime and first-call prerequisites, parameterized",
      "display": "{\"requires_python\": \">=3.7\", \"setup\": [\"Save as test_example.py and run with Python. Official .expand unittest pattern; plain parameterized generator-style tests have different runner compatibility and are not substituted. Python>=3.7 in current metadata.\"]}",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Native case behavior, parameterized",
      "display": "{\"Declared input cases\": \"Native expand creates cases from supplied values/iterables in supported test frameworks.\", \"Property-based generation\": \"Bounded native API enumerates caller-declared cases. A caller producing random input values is not a built-in property exploration/shrinking engine.\"}",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Standalone generator versus expand mode, parameterized",
      "display": "Selected real example uses .expand on a unittest method. Generator-style parameterized and supported runners have a different compatibility matrix; no assertion every pytest release collects old yield tests.",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Library name, behave",
      "display": "behave",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Monthly downloads, behave",
      "display": "4.0M",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "License, behave",
      "display": "BSD-2-Clause",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release, behave",
      "display": "1.3.3",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Package release date, behave",
      "display": "Sep 2025",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Install, behave",
      "display": "pip install behave",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Quickstart, behave",
      "display": "mkdir -p features/steps\ncat > features/example.feature <<'EOF'\nFeature: Arithmetic\n  Scenario: Add two numbers\n    Given two numbers are added\nEOF\ncat > features/steps/example.py <<'EOF'\nfrom behave import given\n\n@given(\"two numbers are added\")\ndef step_add(context):\n    assert 1 + 1 == 2\nEOF\nbehave\n",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Official description, behave",
      "display": "Runs behavior-driven development tests in Python.",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Quickstart source file, behave",
      "display": "docs/tutorial.rst",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Repository stars, behave",
      "display": "3.5K",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Declared input cases, behave",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Property-based generation, behave",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Testing role and execution model, behave",
      "display": "Gherkin BDD runner mapping Given/When/Then scenarios to Python step implementations.",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Current runtime and first-call prerequisites, behave",
      "display": "{\"requires_python\": \"!=3.0.*,!=3.1.*,!=3.2.*,>=2.7\", \"setup\": [\"Disclosed minimal shell/file setup recipe follows the official features/steps and @given registration pattern. These are displayed commands,never executed during research. Run in a new working directory with the selected Python environment.\"]}",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Native case behavior, behave",
      "display": "{\"Declared input cases\": \"Native Gherkin Scenario Outline plus Examples rows expands declared cases.\", \"Property-based generation\": \"Bounded Gherkin runner/step API executes defined scenarios and outline examples. It does not expose a native property-strategy generation and shrinking engine.\"}",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Library name, robotframework",
      "display": "Robot Framework",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Monthly downloads, robotframework",
      "display": "3.6M",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "License, robotframework",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release, robotframework",
      "display": "7.5.1",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release date, robotframework",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Install, robotframework",
      "display": "pip install robotframework",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Quickstart, robotframework",
      "display": "from robot.api import TestSuite\n\nsuite = TestSuite(\"Example\")\ntest = suite.tests.create(\"Values match\")\ntest.body.create_keyword(\"Should Be Equal\", args=[\"hello\", \"hello\"])\nresult = suite.run()\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Repository stars, robotframework",
      "display": "12.0K",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Declared input cases, robotframework",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Property-based generation, robotframework",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Testing role and execution model, robotframework",
      "display": "Keyword-driven acceptance/RPA runner with tabular templates and Python library/listener integration.",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Current runtime and first-call prerequisites, robotframework",
      "display": "{\"requires_python\": \">=3.8\", \"setup\": [\"Current Robot Framework requires Python>=3.8. Programmatic suite execution uses automatically available BuiltIn keywords and may write normal Robot output artifacts in the reader working directory. No suite or SDK executed during research.\"]}",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Native case behavior, robotframework",
      "display": "{\"Declared input cases\": \"Native test templates bind declared tabular input rows to keyword execution.\", \"Property-based generation\": \"Native keyword/test-template execution is declared test data,not a property exploration/shrinking strategy engine.\"}",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Actual project argument and return contract, robotframework",
      "display": "{\"status\": \"verified\", \"arguments\": \"Whole RPA Framework listener end_keyword receives current supported listener-v2 keyword name and attribute mapping. Actual class declares ROBOT_LISTENER_API_VERSION=2 and host guard requires an active Robot execution context. Original stack entry records the previous native log-level string; BuiltIn().set_log_level(old) restores that accepted string. Selenium failure-handler calls are optional peer-library APIs,not counted as Robot Framework calls.\", \"return_shape\": \"Current7.5.1 native set_log_level returns previous level,while this restoration call ignores its return. The function pops only the matching last protected keyword and preserves original muting-state restoration. It is listener lifecycle integration,not a claim of comprehensive redaction or asynchronous task isolation.\"}",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project function, robotframework",
      "display": "def end_keyword(self, name, attributes):  # pylint: disable=W0613\n    \"\"\"Listener method for keyword end.\n\n    :param name: keyword name\n    :param attributes: keyword attributes\n\n    If `name` exists in the protected keywords list then log level is\n    restored back to level it was before settings to NONE.\n    \"\"\"\n    if not self._is_robot_running():\n        return\n\n    normalized = self._normalize(name)\n\n    if self.stack and self.stack[-1][0] == normalized:\n        _, old = self.stack.pop()\n        BuiltIn().set_log_level(old)\n\n    # Run-on-failure\n\n    if normalized != self.muted_keyword:\n        return\n\n    self.logger.debug(\"Un-muting failures after keyword: %s\", name)\n    for library, _ in self.muted_optionals:\n        previous = self.muted_previous.get(library.__class__.__name__)\n        if previous:\n            library.register_keyword_to_run_on_failure(previous)\n\n    self.muted_keyword = None\n    self.muted_previous = {}\n",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project source file, robotframework",
      "display": "packages/core/src/RPA/core/logger.py",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project full_name, robotframework",
      "display": "robocorp/rpaframework",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project stargazers_count, robotframework",
      "display": "1.6K",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Library name, PyHamcrest",
      "display": "PyHamcrest",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Monthly downloads, PyHamcrest",
      "display": "2.6M",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "License, PyHamcrest",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Package release, PyHamcrest",
      "display": "2.1.0",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Package release date, PyHamcrest",
      "display": "Oct 2023",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Install, PyHamcrest",
      "display": "pip install PyHamcrest",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Quickstart, PyHamcrest",
      "display": "from hamcrest import assert_that, equal_to\n\nassert_that(1 + 1, equal_to(2))\n",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Official description, PyHamcrest",
      "display": "Provides Hamcrest matcher objects.",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Quickstart source file, PyHamcrest",
      "display": "doc/tutorial.rst",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Repository stars, PyHamcrest",
      "display": "809",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Declared input cases, PyHamcrest",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Property-based generation, PyHamcrest",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Testing role and execution model, PyHamcrest",
      "display": "Matcher/assertion library used inside another runner or directly,without its own suite discovery/case generation.",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Current runtime and first-call prerequisites, PyHamcrest",
      "display": "{\"requires_python\": \">=3.6\", \"setup\": [\"Current2.1 metadata requires Python>=3.6. Assertion helper can run directly or in an existing test framework; it supplies no suite discovery or case generator.\"]}",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Native case behavior, PyHamcrest",
      "display": "{\"Declared input cases\": \"Bounded matcher/assertion API evaluates supplied actual values; it does not generate runnable test cases from declared case data.\", \"Property-based generation\": \"Matchers build predicates/descriptions,not generated inputs or a shrinking engine. A generator supplied by the test framework is separate.\"}",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Library name, testfixtures",
      "display": "testfixtures",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Monthly downloads, testfixtures",
      "display": "2.1M",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "License, testfixtures",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Package release, testfixtures",
      "display": "12.4.0",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Package release date, testfixtures",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Install, testfixtures",
      "display": "pip install testfixtures",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Quickstart, testfixtures",
      "display": "from testfixtures import compare\n\ncompare({\"answer\": 42}, {\"answer\": 42})\n",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Official description, testfixtures",
      "display": "Provides helpers and mock objects for unit tests and doc tests.",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Quickstart source file, testfixtures",
      "display": "docs/comparing.rst",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Repository stars, testfixtures",
      "display": "244",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Declared input cases, testfixtures",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Property-based generation, testfixtures",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Testing role and execution model, testfixtures",
      "display": "Comparisons,captures,and fixtures for existing unit/doc tests; current logging adapters use structured capture sources.",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Current runtime and first-call prerequisites, testfixtures",
      "display": "{\"requires_python\": \">=3.11\", \"setup\": [\"Current12.4 requires Python>=3.11. Matching objects return normally; a difference raises AssertionError. This is a comparison first call,not a pytest fixture or log setup example.\"]}",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Native case behavior, testfixtures",
      "display": "{\"Declared input cases\": \"Bounded assertions,fixtures,and capture helpers do not themselves expand declared tables into runnable suite cases.\", \"Property-based generation\": \"General comparisons and fixture/mock helpers are not property-based generation/shrinking. Calling these helpers from an external generated test does not make that external engine native.\"}",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Current logging capture shape, testfixtures",
      "display": "Current12.4 original cookbook uses LoggingSource and two-item(level,message) expected tuples. docs/license.rst includes ../LICENSE.txt; actual root MIT text is retained rather than presenting the include directive as a license grant.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Library name, ddt",
      "display": "ddt",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Monthly downloads, ddt",
      "display": "1.3M",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, ddt",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, ddt",
      "display": "1.7.2",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, ddt",
      "display": "Feb 2024",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, ddt",
      "display": "pip install ddt",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, ddt",
      "display": "import unittest\nfrom ddt import ddt, data\n\n@ddt\nclass PositiveTests(unittest.TestCase):\n    @data(1, 2, 3)\n    def test_positive(self, value):\n        self.assertGreater(value, 0)\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Official description, ddt",
      "display": "Generates data-driven tests.",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Quickstart source file, ddt",
      "display": "test/test_example.py",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Repository stars, ddt",
      "display": "444",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Declared input cases, ddt",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Property-based generation, ddt",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Testing role and execution model, ddt",
      "display": "Class decorator and data decorators generate unittest cases from inline values,iterables,JSON,or optional YAML files.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Current runtime and first-call prerequisites, ddt",
      "display": "{\"requires_python\": \"\", \"setup\": [\"Save as test_example.py and run with Python. Uses native stdlib unittest and declared data; no YAML dependency is required for inline data. Optional file_data YAML support is separate.\"]}",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Native case behavior, ddt",
      "display": "{\"Declared input cases\": \"Native data/idata/file_data decorations on @ddt unittest classes create declared cases.\", \"Property-based generation\": \"Current native decorators enumerate supplied values or files; no property strategy exploration/shrinking engine. Caller-defined random values are ordinary data.\"}",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python testing libraries pytest unittest Hypothesis Robot Framework code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
