src/eric7/Testing/Interfaces/UnittestExecutor.py

branch
eric7-maintenance
changeset 10079
0222a480e93d
parent 9654
7328efba128b
parent 10069
435cc5875135
child 10460
3b34efa2857c
equal deleted inserted replaced
10005:097199aec4bd 10079:0222a480e93d
78 with contextlib.suppress(json.JSONDecodeError): 78 with contextlib.suppress(json.JSONDecodeError):
79 return json.loads(versionsStr) 79 return json.loads(versionsStr)
80 80
81 return {} 81 return {}
82 82
83 def hasCoverage(self, interpreter): 83 def hasCoverage(self, interpreter): # noqa: U100
84 """ 84 """
85 Public method to get the test framework version and version information 85 Public method to get the test framework version and version information
86 of its installed plugins. 86 of its installed plugins.
87 87
88 @param interpreter interpreter to be used for the test 88 @param interpreter interpreter to be used for the test
90 @return flag indicating the availability of coverage functionality 90 @return flag indicating the availability of coverage functionality
91 @rtype bool 91 @rtype bool
92 """ 92 """
93 return True 93 return True
94 94
95 def supportsPatterns(self, interpreter): 95 def supportsPatterns(self, interpreter): # noqa: U100
96 """ 96 """
97 Public method to indicate the support for test filtering using test name 97 Public method to indicate the support for test filtering using test name
98 patterns or a test name pattern expression. 98 patterns or a test name pattern expression.
99 99
100 @param interpreter interpreter to be used for the test 100 @param interpreter interpreter to be used for the test
236 name=data["name"], 236 name=data["name"],
237 id=data["id"], 237 id=data["id"],
238 description=data["description"], 238 description=data["description"],
239 message=message, 239 message=message,
240 extra=tracebackLines, 240 extra=tracebackLines,
241 duration=data.get("duration_ms", None), 241 duration=data.get("duration_ms"),
242 filename=filename, 242 filename=filename,
243 lineno=lineno, 243 lineno=lineno,
244 subtestResult=data.get("subtest", False), 244 subtestResult=data.get("subtest", False),
245 ) 245 )
246 ) 246 )

eric ide

mercurial