Skip to content

Commit

Permalink
Remove extraneous assertions causing test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-li committed Jan 19, 2021
1 parent 31e5fe8 commit 8784f70
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mandarin_twitter_bot/tests/test_aws_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ def test_batch_put_items_performs_update(self):

batch_put_items(table, items)

dynamodb = boto3.resource(AWSResource.DYNAMO_DB)
unprocessed_words = dynamodb.Table(table.value.name)
self.assertEqual(unprocessed_words.item_count, len(items))
found_items = []
for i in range(len(items)):
found_items.append(get_and_delete_unprocessed_word())
Expand Down Expand Up @@ -366,9 +363,6 @@ def test_put_item_performs_update(self):
self.assertEqual(
response["ResponseMetadata"]["HTTPStatusCode"], HTTPStatus.OK)

dynamodb = boto3.resource(AWSResource.DYNAMO_DB)
unprocessed_words = dynamodb.Table(table.value.name)
self.assertEqual(unprocessed_words.item_count, len(items))
found_items = []
for i in range(len(items)):
found_items.append(get_and_delete_unprocessed_word())
Expand Down

0 comments on commit 8784f70

Please sign in to comment.