From bfc401c520b38f60adb29d5aba09bcead2da13c0 Mon Sep 17 00:00:00 2001 From: Daniel Guerrero Date: Mon, 29 Jul 2019 21:21:02 -0500 Subject: [PATCH] Fixing comments conventions --- moto/dynamodbstreams/responses.py | 2 +- tests/test_dynamodbstreams/test_dynamodbstreams.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moto/dynamodbstreams/responses.py b/moto/dynamodbstreams/responses.py index 0e2800f55..c4e61a750 100644 --- a/moto/dynamodbstreams/responses.py +++ b/moto/dynamodbstreams/responses.py @@ -24,7 +24,7 @@ class DynamoDBStreamsHandler(BaseResponse): shard_id = self._get_param('ShardId') shard_iterator_type = self._get_param('ShardIteratorType') sequence_number = self._get_param('SequenceNumber') - #according to documentation sequence_number param should be string + # according to documentation sequence_number param should be string if isinstance(sequence_number, str): sequence_number = int(sequence_number) diff --git a/tests/test_dynamodbstreams/test_dynamodbstreams.py b/tests/test_dynamodbstreams/test_dynamodbstreams.py index f1c59fa29..deb9f9283 100644 --- a/tests/test_dynamodbstreams/test_dynamodbstreams.py +++ b/tests/test_dynamodbstreams/test_dynamodbstreams.py @@ -170,7 +170,7 @@ class TestCore(): resp = conn.get_records(ShardIterator=resp['NextShardIterator']) assert len(resp['Records']) == 0 - #check that if we get the shard iterator AT_SEQUENCE_NUMBER will get the MODIFY event + # check that if we get the shard iterator AT_SEQUENCE_NUMBER will get the MODIFY event resp = conn.get_shard_iterator( StreamArn=self.stream_arn, ShardId=shard_id, @@ -183,7 +183,7 @@ class TestCore(): assert resp['Records'][0]['eventName'] == 'MODIFY' assert resp['Records'][1]['eventName'] == 'DELETE' - #check that if we get the shard iterator AFTER_SEQUENCE_NUMBER will get the DELETE event + # check that if we get the shard iterator AFTER_SEQUENCE_NUMBER will get the DELETE event resp = conn.get_shard_iterator( StreamArn=self.stream_arn, ShardId=shard_id,