Remove test plugin
This commit is contained in:
parent
d688121d96
commit
42e0948562
1 changed files with 0 additions and 13 deletions
|
@ -1,13 +0,0 @@
|
||||||
import logging
|
|
||||||
from plugins.log_plugin import LogPlugin
|
|
||||||
from plugin import load_plugins_for_config
|
|
||||||
|
|
||||||
|
|
||||||
def test_load_plugins_for_config() -> None:
|
|
||||||
config = [{"name": "log", "level": "DEBUG"}]
|
|
||||||
|
|
||||||
plugins = load_plugins_for_config(config)
|
|
||||||
# The only plugin loaded should be the log plugin
|
|
||||||
log_plugin = plugins[0]
|
|
||||||
assert isinstance(log_plugin, LogPlugin)
|
|
||||||
assert log_plugin.log_level == logging.getLevelName("DEBUG")
|
|
Loading…
Reference in a new issue