Skip to content

Commit

Permalink
Fixed formatting issues for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaAnis committed Nov 16, 2023
1 parent 8b9ebd7 commit e8f4812
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions backend/tests/test_explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


def test_find_mentee():

load_dotenv()

BASE_URL = os.getenv("BASE_URL")
Expand All @@ -31,7 +30,6 @@ def test_find_mentee():


def test_find_mentor():

load_dotenv()

BASE_URL = os.getenv("BASE_URL")
Expand Down
5 changes: 1 addition & 4 deletions backend/tests/test_mentor_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from dotenv import load_dotenv
import jwt


# check the login route
def test_login_mentor():

Expand All @@ -29,7 +30,6 @@ def test_login_mentor():


def test_login_mentor_wrong_password():

load_dotenv()

# wrong data must not return 200
Expand All @@ -43,7 +43,6 @@ def test_login_mentor_wrong_password():


def test_login_mentor_wrong_email():

load_dotenv()

# wrong data must not return 200
Expand All @@ -57,7 +56,6 @@ def test_login_mentor_wrong_email():


def login_mentor():

load_dotenv()

test_data = {
Expand All @@ -75,7 +73,6 @@ def login_mentor():


def response_test(test_data):

BASE_URL = os.getenv("BASE_URL")

# attempt login with the provided data
Expand Down
3 changes: 1 addition & 2 deletions backend/tests/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -24,7 +24,6 @@ def test_account_info():


def get_user_data():

load_dotenv()

test_data = {
Expand Down

0 comments on commit e8f4812

Please sign in to comment.