@@ -37,11 +37,52 @@ def test_departments_route(test_client: FlaskClient) -> None:
3737 "space, the final frontier" ,
3838 "flying, need for speed" ,
3939 ),
40+ (
41+ "School of science" ,
42+ "School of science" ,
43+ "School of engineering" ,
44+ "School of science" ,
45+ "School of engineering" ,
46+ "School of engineering" ,
47+ "School of engineering" ,
48+ ),
49+ (
50+ "CSCI" ,
51+ "BIOL" ,
52+ "MTLE"
53+ "MATH" ,
54+ "ENVI" ,
55+ "MANE" ,
56+ "MANE" ,
57+ ),
58+ (
59+ "https://cdn-icons-png.flaticon.com/512/5310/5310672.png" ,
60+ "https://cdn-icons-png.flaticon.com/512/5310/5310672.png" ,
61+ "https://cdn-icons-png.flaticon.com/512/5310/5310672.png"
62+ "https://cdn-icons-png.flaticon.com/512/5310/5310672.png" ,
63+ "https://cdn-icons-png.flaticon.com/512/5310/5310672.png" ,
64+ "https://cdn-icons-png.flaticon.com/512/5310/5310672.png" ,
65+ "https://cdn-icons-png.flaticon.com/512/5310/5310672.png" ,
66+ ),
67+ (
68+ "https://www.rpi.edu" ,
69+ "https://www.rpi.edu" ,
70+ "https://www.rpi.edu" ,
71+ "https://www.rpi.edu" ,
72+ "https://www.rpi.edu" ,
73+ "https://www.rpi.edu" ,
74+ "https://www.rpi.edu" ,
75+ ),
4076 )
4177
4278 for department in json_data :
4379 assert department ["name" ] in rpi_departments_data [0 ]
4480 assert department ["description" ] in rpi_departments_data [1 ]
81+ #Added
82+ assert department ["school_id" ] in rpi_departments_data [2 ]
83+ assert department ["id" ] in rpi_departments_data [3 ]
84+ assert department ["image" ] in rpi_departments_data [4 ]
85+ assert department ["webcite" ] in rpi_departments_data [5 ]
4586
4687
4788def test_department_route (test_client : FlaskClient ) -> None :
@@ -59,6 +100,10 @@ def test_department_route(test_client: FlaskClient) -> None:
59100 assert json_data ["name" ] == "Computer Science"
60101 assert json_data ["description" ] == "DS"
61102 assert json_data ["school_id" ] == "School of Science"
103+ #Added
104+ assert json_data ["id" ] == "CSCI"
105+ assert json_data ["image" ] == "https://cdn-icons-png.flaticon.com/512/5310/5310672.png"
106+ assert json_data ["webcite" ] == "https://www.rpi.edu"
62107
63108 prof_names = ["Duy Le" , "Rafael" , "Turner" , "Kuzmin" , "Goldschmidt" ]
64109 prof_rcs_ids = ["led" , "cenzar" , "turner" , "kuzmin" , "goldd" ]
0 commit comments