MCPcopy
hub / github.com/pytest-dev/pytest / MyPlugin

Class MyPlugin

testing/acceptance_test.py:652–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650
651 def test_invoke_plugin_api(self, capsys) -> None:
652 class MyPlugin:
653 def pytest_addoption(self, parser):
654 parser.addoption("--myopt")
655
656 pytest.main(["-h"], plugins=[MyPlugin()])
657 out, _err = capsys.readouterr()

Callers 1

Calls

no outgoing calls

Tested by 1