mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-devtest
synced 2026-01-15 10:23:32 +01:00
os.TestResutls: Add method addResults()
Add method addResults(), which allows to merge results of another TestResults instance into the called instance. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6e04ffdcbe
commit
d747aa78d5
1 changed files with 3 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ class TestResults: # export
|
|||
def add(self, case, phase, result):
|
||||
self.__records.append([case, phase, result])
|
||||
|
||||
def addResults(self, results):
|
||||
self.__records.extend(results.__records)
|
||||
|
||||
def n_failed(self):
|
||||
return len(list(filter(None, [rec[TestResults.Field.Result] for rec in self.__records])))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue