@@ -45,7 +45,7 @@ def test_my_nested_step():
45
45
from functools import wraps
46
46
from typing import Callable , ParamSpec , TypeVar , Optional , Dict , Union , Type
47
47
48
- from reportportal_client import RP
48
+ import reportportal_client as rp
49
49
# noinspection PyProtectedMember
50
50
from reportportal_client ._internal .aio .tasks import Task
51
51
# noinspection PyProtectedMember
@@ -63,9 +63,9 @@ def test_my_nested_step():
63
63
class StepReporter :
64
64
"""Nested Steps context handling class."""
65
65
66
- client : RP
66
+ client : rp . RP
67
67
68
- def __init__ (self , rp_client : RP ):
68
+ def __init__ (self , rp_client : rp . RP ):
69
69
"""Initialize required attributes.
70
70
71
71
:param rp_client: ReportPortal client which will be used to report
@@ -104,10 +104,10 @@ class Step(Callable[[_Param], _Return]):
104
104
name : str
105
105
params : Dict
106
106
status : str
107
- client : Optional [RP ]
107
+ client : Optional [rp . RP ]
108
108
__item_id : Union [Optional [str ], Task [Optional [str ]]]
109
109
110
- def __init__ (self , name : str , params : Dict , status : str , rp_client : Optional [RP ]):
110
+ def __init__ (self , name : str , params : Dict , status : str , rp_client : Optional [rp . RP ]) -> None :
111
111
"""Initialize required attributes.
112
112
113
113
:param name: Nested Step name
@@ -173,7 +173,7 @@ def wrapper(*my_args, **my_kwargs):
173
173
174
174
175
175
def step (name_source : Union [Callable [[_Param ], _Return ], str ], params : Optional [Dict ] = None , status : str = 'PASSED' ,
176
- rp_client : Optional [RP ] = None ) -> Callable [[_Param ], _Return ]:
176
+ rp_client : Optional [rp . RP ] = None ) -> Callable [[_Param ], _Return ]:
177
177
"""Nested step report function.
178
178
179
179
Create a Nested Step inside a test method on ReportPortal.
0 commit comments