Relative Content

Tag Archive for pluginspytesthook

Pytest internal app plugin not being discovered

I’ve been tring to get started with a basic Pytest internal app plugin. According to the v8.1.1 Pytest doc, loading MyPlugin.py in a test_TestPlugin.py file should be possible with pytest_plugins = ["MyPlugin",] in said test_ file. However, running pytest -s gives an ImportError: “No module named ‘MyPlugin'”.