# Path: jasmine/result_list.py
# class ResultList(list):
# 
#     def add_result(self, result):
#         self.append(Result(**result))
# 
#     def passed(self):
#         return self._filter_status('passed')
# 
#     def failed(self):
#         return self._filter_status('failed')
# 
#     def pending(self):
#         return self._filter_status('pending')
# 
#     def enabled(self):
#         return [result for result in self if result.status != 'disabled']
# 
#     def _filter_status(self, status):
#         return [result for result in self if result.status == status]
# 
#     def __add__(self, other):
#         return ResultList(list.__add__(self, other))


from jasmine.result_list import ResultList


class Parser(object):
    RESULT_FIELDS = {
        'status': 'status',
        'fullName': 'full_name',
        'failedExpectations': 'failed_expectations',
        'deprecationWarnings': 'deprecation_warnings',
        'id': 'runnable_id',
        'description': 'description',
        'pendingReason': 'pending_reason'
    }

    def parse(self, items):

# Path: jasmine/result_list.py
# class ResultList(list):
# 
#     def add_result(self, result):
#         self.append(Result(**result))
# 
#     def passed(self):
#         return self._filter_status('passed')
# 
#     def failed(self):
#         return self._filter_status('failed')
# 
#     def pending(self):
#         return self._filter_status('pending')
# 
#     def enabled(self):
#         return [result for result in self if result.status != 'disabled']
# 
#     def _filter_status(self, status):
#         return [result for result in self if result.status == status]
# 
#     def __add__(self, other):
#         return ResultList(list.__add__(self, other))


# Path: jasmine/js_api_parser.py
from jasmine.result_list import ResultList



class Parser(object):
    RESULT_FIELDS = {
        'status': 'status',
        'fullName': 'full_name',
        'failedExpectations': 'failed_expectations',
        'deprecationWarnings': 'deprecation_warnings',
        'id': 'runnable_id',
        'description': 'description',
        'pendingReason': 'pending_reason'
    }

    def parse(self, items):

        result_list = ResultList()