import pytest from shepherd.agent import plugin def test_simple_plugin_load(request): # If successful, will load as if it's a custom plugin interface = plugin.load_plugin("simpletestplugin", request.fspath.dirname) # Should prefer the confspec actually registered assert "spec2" in interface.confspec.spec_dict print(interface)