Skip to content
Snippets Groups Projects
Commit a667092a authored by ml bonhomme's avatar ml bonhomme :bee:
Browse files

neat thing flattening

parent 728a7e35
No related branches found
No related tags found
No related merge requests found
......@@ -461,8 +461,8 @@ class TestBulkElementTranscriptions(FixtureAPITestCase):
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
created_elts = Element.objects.get_descending(self.page.id).exclude(id__in=existing_element_ids)
self.assertCountEqual(
created_elts.values_list('transcriptions__orientation'),
[(TextOrientation.HorizontalLeftToRight,), (TextOrientation.HorizontalLeftToRight,)]
created_elts.values_list('transcriptions__orientation', flat=True),
[TextOrientation.HorizontalLeftToRight, TextOrientation.HorizontalLeftToRight]
)
def test_bulk_transcriptions_invalid_orientation(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment