Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjinkun committed Jun 9, 2022
1 parent af6bbb4 commit 0187e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_launchable_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class PseudoPytest:
"""make pseudo pytest item"""

def __init__(self, file: str, name: str, func_or_method: Callable, parameters: str = None):
class_name = func_or_method.__self__.__class__.__name__ if hasattr( # type: ignore
func_or_method, "__self__") else None
class_name = func_or_method.__self__.__class__.__name__ if hasattr( # type: ignore
func_or_method, "__self__") else None
function = name + f'[{parameters}]' if parameters else name
self.keywords = [file]
self.nodeid = "::".join(
Expand Down

0 comments on commit 0187e5b

Please sign in to comment.