Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
Reorder dictionary for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
George Schneeloch committed Sep 4, 2015
1 parent 3459b82 commit 495bcc8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rest/tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ def assert_result_equal(self, result, resource):

self.assertEqual(
{
'xa_avg_grade': resource.xa_avg_grade,
'course': resource.course.course_number,
'description': resource.description,
'description_path': resource.description_path,
'resource_type': resource.learning_resource_type.name,
'lid': resource.id,
'xa_nr_attempts': resource.xa_nr_attempts,
'xa_nr_views': resource.xa_nr_views,
'preview_url': get_preview_url(resource),
'resource_type': resource.learning_resource_type.name,
'run': resource.course.run,
'title': resource.title
'title': resource.title,
'xa_avg_grade': resource.xa_avg_grade,
'xa_nr_attempts': resource.xa_nr_attempts,
'xa_nr_views': resource.xa_nr_views,
},
result
)
Expand Down

0 comments on commit 495bcc8

Please sign in to comment.