@pytest.mark.django_db
def test_contributors_sort_contributions(member, anon_submission_unit):
 contribs = Contributors()
 assert (contribs.sort_by == 'username')
 contribs = Contributors(sort_by='contributions')
 assert (contribs.sort_by == 'contributions')
 assert (contribs.contributors == _contributors_list(contribs))

@ pytest . mark . django_db def test_contributors_sort_contributions ( member , anon_submission_unit ) : contribs = Contributors ( ) assert ( contribs . sort_by == 'username' ) contribs = Contributors ( sort_by = 'contributions' ) assert ( contribs . sort_by == 'contributions' ) assert ( contribs . contributors == _contributors_list ( contribs ) )
contributors across the site .