File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ def result(self) -> Any:
56
56
decorator.
57
57
"""
58
58
try :
59
- self ._subject_result = self .subject (** self ._subjectKwargs )
60
- return self ._subject_result
59
+ self ._subjectResult = self .subject (** self ._subjectKwargs )
60
+ return self ._subjectResult
61
61
except Exception as e :
62
62
msg = e .args [0 ]
63
63
if "subject() got an unexpected keyword argument" in msg :
@@ -85,11 +85,11 @@ def cachedResult(self) -> Any:
85
85
The returned object is a copy of the result. Thus, the result cannot be
86
86
mutated by mutating the returned object of this method.
87
87
"""
88
- if not hasattr (self , "_subject_result " ):
88
+ if not hasattr (self , "_subjectResult " ):
89
89
raise TestError ("Cannot call 'cachedResult' before calling 'result'" )
90
90
# NOTE: deepcopy keeps a reference of the copied object. This can cause
91
91
# issues with memory.
92
- return deepcopy (self ._subject_result )
92
+ return deepcopy (self ._subjectResult )
93
93
94
94
def assertResult (self , value ):
95
95
"""
You can’t perform that action at this time.
0 commit comments