order tags alphabetically

This commit is contained in:
Chris Meyers
2016-04-22 09:27:52 -04:00
parent 29a9f933c5
commit b8a22c2c17
2 changed files with 2 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ class TestJobOptionsSerializerGetSummaryFields(GetSummaryFieldsMixin):
serializer = JobOptionsSerializer()
summary_labels = serializer._summary_field_labels(job_template)
job_template.labels.all.order_by.assert_called_with('-name')
job_template.labels.all.order_by.assert_called_with('name')
assert len(summary_labels) == 10
assert summary_labels == [{'id': x.id, 'name': x.name} for x in labels[:10]]