This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.mark.asyncio | |
async def test_resolver_async(): | |
# GIVEN | |
app = AppSyncResolver() | |
mock_event = {"typeName": "Customer", "fieldName": "field", "arguments": {}} | |
# Note: this function would be defined in another module in an actual serverless application, and imported. | |
# Its structured this way here as we're testing the framework itself. | |
@app.resolver(field_name="field") |