Lines Matching refs:test_view
122 test_view = test_views[test_idx]
124 tko_rpc_utils.add_status_counts(group_dict, test_view.status)
127 group_dict['extra_info'].append(getattr(test_view, field))
138 for test_view in query.values('job_tag').distinct():
140 first_tag_component = test_view['job_tag'].split('-')[0]
186 tests_by_id = models.Test.objects.in_bulk([test_view['test_idx']
187 for test_view in test_views])
198 jobs_by_id = models.Job.objects.in_bulk([test_view['job_idx']
199 for test_view in test_views])
204 for test_view in test_views:
205 test = tests_by_id[test_view['test_idx']]
206 test_view['attributes'] = _attributes_to_dict(test.attributes)
207 test_view['iterations'] = _format_iteration_keyvals(test)
208 test_view['labels'] = [label.name for label in test.labels]
210 job = jobs_by_id[test_view['job_idx']]
211 test_view['job_keyvals'] = _job_keyvals_to_dict(job.keyvals)