Skip to content

Commit 1b4280b

Browse files
committed
Fix buggy test
1 parent 045fc0e commit 1b4280b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/unit/test_baseapi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717

1818
class BaseAPITestCase(MockedAPITestCase):
1919
def test_raises_exception_for_missing_key(self) -> None:
20-
os.environ.pop("PAYSTACK_SECRET_KEY", None)
20+
paystack_secret_key = os.environ.pop("PAYSTACK_SECRET_KEY", None)
2121
with self.assertRaises(MissingSecretKeyException):
2222
BaseAPIClient()
23+
os.environ["PAYSTACK_SECRET_KEY"] = paystack_secret_key
2324

2425
def test__full_url(self) -> None:
2526
load_dotenv()

0 commit comments

Comments
 (0)