MCPcopy Create free account
hub / github.com/pytest-dev/pytest / MyPlugin

Class MyPlugin

testing/acceptance_test.py:581–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579
580 def test_invoke_plugin_api(self, capsys) -> None:
581 class MyPlugin:
582 def pytest_addoption(self, parser):
583 parser.addoption("--myopt")
584
585 pytest.main(["-h"], plugins=[MyPlugin()])
586 out, err = capsys.readouterr()

Callers 1

Calls

no outgoing calls

Tested by 1