From e8f48121bd926ce46664aaeb921826f9828bec52 Mon Sep 17 00:00:00 2001 From: hamzaanis Date: Thu, 16 Nov 2023 20:31:25 +0500 Subject: [PATCH] Fixed formatting issues for backend --- backend/tests/test_explore.py | 2 -- backend/tests/test_mentor_auth.py | 5 +---- backend/tests/test_profile.py | 3 +-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/backend/tests/test_explore.py b/backend/tests/test_explore.py index d5050f9ce..2f58789f5 100644 --- a/backend/tests/test_explore.py +++ b/backend/tests/test_explore.py @@ -6,7 +6,6 @@ def test_find_mentee(): - load_dotenv() BASE_URL = os.getenv("BASE_URL") @@ -31,7 +30,6 @@ def test_find_mentee(): def test_find_mentor(): - load_dotenv() BASE_URL = os.getenv("BASE_URL") diff --git a/backend/tests/test_mentor_auth.py b/backend/tests/test_mentor_auth.py index 17b700fc2..49e912ab8 100644 --- a/backend/tests/test_mentor_auth.py +++ b/backend/tests/test_mentor_auth.py @@ -4,6 +4,7 @@ from dotenv import load_dotenv import jwt + # check the login route def test_login_mentor(): @@ -29,7 +30,6 @@ def test_login_mentor(): def test_login_mentor_wrong_password(): - load_dotenv() # wrong data must not return 200 @@ -43,7 +43,6 @@ def test_login_mentor_wrong_password(): def test_login_mentor_wrong_email(): - load_dotenv() # wrong data must not return 200 @@ -57,7 +56,6 @@ def test_login_mentor_wrong_email(): def login_mentor(): - load_dotenv() test_data = { @@ -75,7 +73,6 @@ def login_mentor(): def response_test(test_data): - BASE_URL = os.getenv("BASE_URL") # attempt login with the provided data diff --git a/backend/tests/test_profile.py b/backend/tests/test_profile.py index 4094b2add..c2cce220b 100644 --- a/backend/tests/test_profile.py +++ b/backend/tests/test_profile.py @@ -3,9 +3,9 @@ from dotenv import load_dotenv from pprint import pprint + # test the loaded profile of the user def test_account_info(): - load_dotenv() BASE_URL = os.getenv("BASE_URL") @@ -24,7 +24,6 @@ def test_account_info(): def get_user_data(): - load_dotenv() test_data = {