Lines Matching refs:test_view
120 test_view = test_views[test_idx]
122 tko_rpc_utils.add_status_counts(group_dict, test_view.status)
125 group_dict['extra_info'].append(getattr(test_view, field))
136 for test_view in query.values('job_tag').distinct():
138 first_tag_component = test_view['job_tag'].split('-')[0]
184 tests_by_id = models.Test.objects.in_bulk([test_view['test_idx']
185 for test_view in test_views])
196 jobs_by_id = models.Job.objects.in_bulk([test_view['job_idx']
197 for test_view in test_views])
202 for test_view in test_views:
203 test = tests_by_id[test_view['test_idx']]
204 test_view['attributes'] = _attributes_to_dict(test.attributes)
205 test_view['iterations'] = _format_iteration_keyvals(test)
206 test_view['labels'] = [label.name for label in test.labels]
208 job = jobs_by_id[test_view['job_idx']]
209 test_view['job_keyvals'] = _job_keyvals_to_dict(job.keyvals)