Skip to content

Commit

Permalink
feat: set the class name as the default testname
Browse files Browse the repository at this point in the history
  • Loading branch information
yen3 committed Jul 28, 2023
1 parent a033438 commit 2f4082f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dltlyse/core/plugin_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", {}))
Expand Down

0 comments on commit 2f4082f

Please sign in to comment.