From 0432dca304ec40518ed123e55f57f590b6483ec3 Mon Sep 17 00:00:00 2001 From: Manan Jadhav Date: Thu, 12 Nov 2020 11:44:56 +0530 Subject: [PATCH] Removed unused variables --- tests/account_test.py | 4 ++-- tests/token_test.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/account_test.py b/tests/account_test.py index 0f21689..a312294 100644 --- a/tests/account_test.py +++ b/tests/account_test.py @@ -24,14 +24,14 @@ def test_without_credentials(self): def test_unauthorized_access(self): try: test_client = GreenSMS(user='username', password='password') - response = test_client.account.balance() + test_client.account.balance() except Exception as e: self.assertEqual(e.error, 'Authorization declined') def test_insufficient_funds(self): try: test_client = GreenSMS(user='test_block_user', password='183456') - response = test_client.sms.send( + test_client.sms.send( to=random_phone(), txt='Test Message') except Exception as e: self.assertEqual(e.error, 'Insufficient funds') diff --git a/tests/token_test.py b/tests/token_test.py index 86826dc..715c8cc 100644 --- a/tests/token_test.py +++ b/tests/token_test.py @@ -21,7 +21,7 @@ def test_token_expiry(self): invalid_token_client = GreenSMS(token=token_response['access_token']) time.sleep(5) try: - response = invalid_token_client.account.balance() + invalid_token_client.account.balance() except Exception as e: self.assertEqual(e.error, 'Authorization declined')