You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
351 B
12 lines
351 B
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)
|