88import pyhelm3
99import pytest
1010
11- from .fixtures import ESSData
11+ from .fixtures import ESSData , User
1212from .lib .helpers import deploy_with_values_patch , get_deployment_marker
1313from .lib .synapse import assert_downloaded_content , download_media , upload_media
1414from .lib .utils import KubeCtl , aiohttp_client , aiohttp_get_json , aiohttp_post_json , value_file_has
@@ -33,10 +33,10 @@ async def test_synapse_can_access_client_api(
3333
3434
3535@pytest .mark .skipif (value_file_has ("synapse.enabled" , False ), reason = "Synapse not deployed" )
36- @pytest .mark .parametrize ("users" , [("sliding-sync-user" ,)], indirect = True )
36+ @pytest .mark .parametrize ("users" , [(User ( name = "sliding-sync-user" ) ,)], indirect = True )
3737@pytest .mark .asyncio_cooperative
3838async def test_simplified_sliding_sync_syncs (ssl_context , users , generated_data : ESSData ):
39- access_token = users [0 ]
39+ access_token = users [0 ]. access_token
4040
4141 sync_result = await aiohttp_post_json (
4242 f"https://synapse.{ generated_data .server_name } /_matrix/client/unstable/org.matrix.simplified_msc3575/sync" ,
@@ -49,15 +49,15 @@ async def test_simplified_sliding_sync_syncs(ssl_context, users, generated_data:
4949
5050
5151@pytest .mark .skipif (value_file_has ("synapse.enabled" , False ), reason = "Synapse not deployed" )
52- @pytest .mark .parametrize ("users" , [("media-upload-unauth" ,)], indirect = True )
52+ @pytest .mark .parametrize ("users" , [(User ( name = "media-upload-unauth" ) ,)], indirect = True )
5353@pytest .mark .asyncio_cooperative
5454async def test_synapse_media_upload_fetch_authenticated (
5555 cluster ,
5656 ssl_context ,
5757 users ,
5858 generated_data : ESSData ,
5959):
60- user_access_token = users [0 ]
60+ user_access_token = users [0 ]. access_token
6161
6262 filepath = Path (__file__ ).parent .resolve () / Path ("artifacts/files/minimal.png" )
6363 with open (filepath , "rb" ) as file :
0 commit comments