Skip to content

Commit

Permalink
fix: an issue with suites
Browse files Browse the repository at this point in the history
Fix the issue `TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'`

[#226]
  • Loading branch information
gibiw committed Jul 18, 2024
1 parent b27b892 commit c050d09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qase-pytest/src/qase/pytest/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ def _get_suite(self, item):
module = file_name.split('.')[0]
package = path.replace('/', '.') if path else None

title = file_path + '.' + module
if file_path:
title = file_path + '.' + module
else:
title = module

if class_name:
title += '.' + class_name

Expand Down

0 comments on commit c050d09

Please sign in to comment.