From 85cddd0ad43f6e3e44d443ba152fa984b653b85e Mon Sep 17 00:00:00 2001 From: yen3 Date: Fri, 28 Jul 2023 09:09:57 +0200 Subject: [PATCH] feat: set the class name as the default testname --- src/dltlyse/core/plugin_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dltlyse/core/plugin_base.py b/src/dltlyse/core/plugin_base.py index 980de0f..30a2f22 100644 --- a/src/dltlyse/core/plugin_base.py +++ b/src/dltlyse/core/plugin_base.py @@ -121,7 +121,7 @@ def add_result(self, **kwargs): plugin_docstring = inspect.getdoc(self) # Parse plugin short description - kwargs.setdefault("testname", plugin_docstring.splitlines()[0] if plugin_docstring else "") + kwargs.setdefault("testname", plugin_docstring.splitlines()[0] if plugin_docstring else type(self).__name__) # Parse plugin metadata and add plugin docstring metadata = copy.deepcopy(getattr(self, "plugin_metadata", {}))