@@ -213,23 +213,23 @@ async def test_get_inherited_async(anc_any):
213213@pytest .mark .asyncio (scope = "session" )
214214async def test_share_with_async (anc , anc_client ):
215215 nc_second_user = Nextcloud (nc_auth_user = environ ["TEST_USER_ID" ], nc_auth_pass = environ ["TEST_USER_PASS" ])
216- assert not nc_second_user .files .sharing .get_list ()
216+ assert not await nc_second_user .files .sharing .get_list ()
217217 shared_file = await anc .files .by_path ("test_empty_text.txt" )
218218 folder_share = await anc .files .sharing .create (
219219 "test_empty_dir_in_dir" , ShareType .TYPE_USER , share_with = environ ["TEST_USER_ID" ]
220220 )
221221 file_share = await anc .files .sharing .create (shared_file , ShareType .TYPE_USER , share_with = environ ["TEST_USER_ID" ])
222222 shares_list1 = await anc .files .sharing .get_list (path = "test_empty_dir_in_dir/" )
223223 shares_list2 = await anc .files .sharing .get_list (path = "test_empty_text.txt" )
224- second_user_shares_list = nc_second_user .files .sharing .get_list ()
225- second_user_shares_list_with_me = nc_second_user .files .sharing .get_list (shared_with_me = True )
224+ second_user_shares_list = await nc_second_user .files .sharing .get_list ()
225+ second_user_shares_list_with_me = await nc_second_user .files .sharing .get_list (shared_with_me = True )
226226 await anc .files .sharing .delete (folder_share )
227227 await anc .files .sharing .delete (file_share )
228228 assert not second_user_shares_list
229229 assert len (second_user_shares_list_with_me ) == 2
230230 assert len (shares_list1 ) == 1
231231 assert len (shares_list2 ) == 1
232- assert not nc_second_user .files .sharing .get_list ()
232+ assert not await nc_second_user .files .sharing .get_list ()
233233
234234
235235@pytest .mark .asyncio (scope = "session" )
0 commit comments