@@ -21,7 +21,9 @@ async def test_find(repository_class, model_class, sa_bind, sync_async_wrapper):
2121 assert len (results ) == 3
2222
2323
24- async def test_find_filtered (repository_class , model_class , sa_bind , sync_async_wrapper ):
24+ async def test_find_filtered (
25+ repository_class , model_class , sa_bind , sync_async_wrapper
26+ ):
2527 model = model_class (
2628 name = "Someone" ,
2729 )
@@ -38,7 +40,9 @@ async def test_find_filtered(repository_class, model_class, sa_bind, sync_async_
3840 assert len (results ) == 1
3941
4042
41- async def test_find_filtered_fails_if_invalid_filter (repository_class , model_class , sa_bind , sync_async_wrapper ):
43+ async def test_find_filtered_fails_if_invalid_filter (
44+ repository_class , model_class , sa_bind , sync_async_wrapper
45+ ):
4246 repo = repository_class (bind = sa_bind , model_class = model_class )
4347 with pytest .raises (UnmappedProperty ):
4448 await sync_async_wrapper (repo .find (search_params = {"somename" : "Someone" }))
@@ -58,16 +62,22 @@ async def test_find_ordered(repository_class, model_class, sa_bind, sync_async_w
5862 assert results [0 ].name == "Abbott"
5963 assert results [1 ].name == "Costello"
6064
61- results2 = await sync_async_wrapper (repo .find (order_by = (("name" , SortDirection .ASC ),)))
65+ results2 = await sync_async_wrapper (
66+ repo .find (order_by = (("name" , SortDirection .ASC ),))
67+ )
6268 assert results2 [0 ].name == "Abbott"
6369 assert results2 [1 ].name == "Costello"
6470
65- results3 = await sync_async_wrapper (repo .find (order_by = (("name" , SortDirection .DESC ),)))
71+ results3 = await sync_async_wrapper (
72+ repo .find (order_by = (("name" , SortDirection .DESC ),))
73+ )
6674 assert results3 [1 ].name == "Abbott"
6775 assert results3 [0 ].name == "Costello"
6876
6977
70- async def test_find_ordered_fails_if_invalid_column (repository_class , model_class , sa_bind , sync_async_wrapper ):
78+ async def test_find_ordered_fails_if_invalid_column (
79+ repository_class , model_class , sa_bind , sync_async_wrapper
80+ ):
7181 repo = repository_class (bind = sa_bind , model_class = model_class )
7282 with pytest .raises (UnmappedProperty ):
7383 await repo .find (order_by = ("unexisting" ,))
0 commit comments