import json import moto.server as server def test_appsync_list_tags_for_resource(): backend = server.create_backend_app("appsync") test_client = backend.test_client() resp = test_client.get( "/v1/tags/arn%3Aaws%3Aappsync%3Aus-east-1%3A123456789012%3Aapis%2Ff405dd93-855e-451d-ab00-7325b8e439c6?tagKeys=Description" ) assert resp.status_code == 200 assert json.loads(resp.data) == {"tags": {}}