import json async def test_hello(jp_fetch): # When response = await jp_fetch("snapshot", "hello") # Then assert response.code == 200 payload = json.loads(response.body) assert payload == { "data": ( "Hello, world!" " This is the '/snapshot/hello' endpoint." " Try visiting me in your browser!" ), }