@@ -15,9 +15,10 @@ def test_empty_catalog_list(api_client):
1515
1616
1717@pytest .mark .integration
18- def test_catalog_list_with_one_item (app , api_client ):
18+ @pytest .mark .asyncio
19+ async def test_catalog_list_with_one_item (app , api_client ):
1920 # arrange
20- app .execute (
21+ await app .execute_async (
2122 CreateListingDraftCommand (
2223 listing_id = GenericUUID (int = 1 ),
2324 title = "Foo" ,
@@ -48,9 +49,10 @@ def test_catalog_list_with_one_item(app, api_client):
4849
4950
5051@pytest .mark .integration
51- def test_catalog_list_with_two_items (app , api_client ):
52+ @pytest .mark .asyncio
53+ async def test_catalog_list_with_two_items (app , api_client ):
5254 # arrange
53- app .execute (
55+ await app .execute_async (
5456 CreateListingDraftCommand (
5557 listing_id = GenericUUID (int = 1 ),
5658 title = "Foo #1" ,
@@ -59,7 +61,7 @@ def test_catalog_list_with_two_items(app, api_client):
5961 seller_id = GenericUUID (int = 2 ),
6062 )
6163 )
62- app .execute (
64+ await app .execute_async (
6365 CreateListingDraftCommand (
6466 listing_id = GenericUUID (int = 2 ),
6567 title = "Foo #2" ,
@@ -86,9 +88,10 @@ def test_catalog_create_draft_fails_due_to_incomplete_data(
8688
8789
8890@pytest .mark .integration
89- def test_catalog_delete_draft (app , authenticated_api_client ):
91+ @pytest .mark .asyncio
92+ async def test_catalog_delete_draft (app , authenticated_api_client ):
9093 current_user = authenticated_api_client .current_user
91- app .execute (
94+ await app .execute_async (
9295 CreateListingDraftCommand (
9396 listing_id = GenericUUID (int = 1 ),
9497 title = "Listing to be deleted" ,
@@ -111,11 +114,12 @@ def test_catalog_delete_non_existing_draft_returns_404(authenticated_api_client)
111114
112115
113116@pytest .mark .integration
114- def test_catalog_publish_listing_draft (app , authenticated_api_client ):
117+ @pytest .mark .asyncio
118+ async def test_catalog_publish_listing_draft (app , authenticated_api_client ):
115119 # arrange
116120 current_user = authenticated_api_client .current_user
117121 listing_id = GenericUUID (int = 1 )
118- app .execute (
122+ await app .execute_async (
119123 CreateListingDraftCommand (
120124 listing_id = listing_id ,
121125 title = "Listing to be published" ,
@@ -132,11 +136,12 @@ def test_catalog_publish_listing_draft(app, authenticated_api_client):
132136 assert response .status_code == 200
133137
134138
135- def test_published_listing_appears_in_biddings (app , authenticated_api_client ):
139+ @pytest .mark .asyncio
140+ async def test_published_listing_appears_in_biddings (app , authenticated_api_client ):
136141 # arrange
137142 listing_id = GenericUUID (int = 1 )
138143 current_user = authenticated_api_client .current_user
139- app .execute (
144+ await app .execute_async (
140145 CreateListingDraftCommand (
141146 listing_id = listing_id ,
142147 title = "Listing to be published" ,
@@ -145,7 +150,7 @@ def test_published_listing_appears_in_biddings(app, authenticated_api_client):
145150 seller_id = current_user .id ,
146151 )
147152 )
148- app .execute (
153+ await app .execute_async (
149154 PublishListingDraftCommand (
150155 listing_id = listing_id ,
151156 seller_id = current_user .id ,
0 commit comments