Skip to content

Commit 8f97033

Browse files
committed
format with black
1 parent 59a53cf commit 8f97033

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

tests/test_departments.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_departments_route(test_client: FlaskClient) -> None:
3939
),
4040
(
4141
"School of science",
42-
"School of science",
42+
"School of science",
4343
"School of engineering",
4444
"School of science",
4545
"School of engineering",
@@ -49,8 +49,7 @@ def test_departments_route(test_client: FlaskClient) -> None:
4949
(
5050
"CSCI",
5151
"BIOL",
52-
"MTLE"
53-
"MATH",
52+
"MTLE" "MATH",
5453
"ENVI",
5554
"MANE",
5655
"MANE",
@@ -78,7 +77,7 @@ def test_departments_route(test_client: FlaskClient) -> None:
7877
for department in json_data:
7978
assert department["name"] in rpi_departments_data[0]
8079
assert department["description"] in rpi_departments_data[1]
81-
#Added
80+
# Added
8281
assert department["school_id"] in rpi_departments_data[2]
8382
assert department["id"] in rpi_departments_data[3]
8483
assert department["image"] in rpi_departments_data[4]
@@ -100,9 +99,11 @@ def test_department_route(test_client: FlaskClient) -> None:
10099
assert json_data["name"] == "Computer Science"
101100
assert json_data["description"] == "DS"
102101
assert json_data["school_id"] == "School of Science"
103-
#Added
102+
# Added
104103
assert json_data["id"] == "CSCI"
105-
assert json_data["image"] == "https://cdn-icons-png.flaticon.com/512/5310/5310672.png"
104+
assert (
105+
json_data["image"] == "https://cdn-icons-png.flaticon.com/512/5310/5310672.png"
106+
)
106107
assert json_data["webcite"] == "https://www.rpi.edu"
107108

108109
prof_names = ["Duy Le", "Rafael", "Turner", "Kuzmin", "Goldschmidt"]

tests/test_user.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@ def test_user_route_with_input_id_1(test_client: FlaskClient) -> None:
2323
assert json_data["preferred_name"] == "Raf"
2424
assert json_data["last_name"] == "Cenzano"
2525
assert json_data["email"] == "[email protected]"
26-
#Added
26+
# Added
2727
assert json_data["description"] == "labconnect is the best RCOS project"
28-
assert json_data["profile_picture"] == "https://rafael.sirv.com/Images/rafael.jpeg?thumbnail=350&format=webp&q=90"
28+
assert (
29+
json_data["profile_picture"]
30+
== "https://rafael.sirv.com/Images/rafael.jpeg?thumbnail=350&format=webp&q=90"
31+
)
2932
assert json_data["website"] == "https://rafaelcenzano.com"
30-
#class year
33+
# class year
3134
assert json_data["class_year"] == "2025"
32-
#lab manager id
35+
# lab manager id
3336
assert json_data["lab_manager_id"] == 1
3437

3538
departments_data = [
@@ -112,10 +115,13 @@ def test_user_route_with_input_id_2(test_client: FlaskClient) -> None:
112115
assert json_data["last_name"] == "RCOS"
113116
assert json_data["preferred_name"] is None
114117
assert json_data["email"] == "[email protected]"
115-
#Added
116-
assert json_data["description"] is None
117-
assert json_data["profile_picture"] == "https://www.svgrepo.com/show/206842/professor.svg" # Adjust based on your test data
118-
assert json_data["website"] is None
118+
# Added
119+
assert json_data["description"] is None
120+
assert (
121+
json_data["profile_picture"]
122+
== "https://www.svgrepo.com/show/206842/professor.svg"
123+
) # Adjust based on your test data
124+
assert json_data["website"] is None
119125
assert json_data["class_year"] is None
120126
assert json_data["lab_manager_id"] is None
121127

0 commit comments

Comments
 (0)