-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from rymir/force-plaintext-aws-response
Force plain (not gzipped) aws response on aiohttp request
- Loading branch information
Showing
3 changed files
with
138 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# import asyncio | ||
import pytest | ||
|
||
|
||
@pytest.mark.parametrize('signature_version', ['v4']) | ||
@pytest.mark.run_loop | ||
def test_can_get_item(dynamodb_client, table_name, dynamodb_put_item): | ||
test_value = 'testValue' | ||
yield from dynamodb_put_item(test_value) | ||
response = yield from dynamodb_client.get_item( | ||
TableName=table_name, | ||
Key={ | ||
'testKey': { | ||
'S': test_value | ||
} | ||
}, | ||
) | ||
pytest.aio.assert_status_code(response, 200) | ||
assert response['Item']['testKey'] == {'S': test_value} |