@@ -15,19 +15,24 @@ def test_fetch_gym_info(self):
15
15
16
16
gym_info = gym .get_all_gyms_info ()
17
17
expected_info = [
18
- gym .Gym (name = "Baierl Rec Center" , date = "07/09/2024 09:05 AM" , count = 100 , percentage = 50 ),
19
- gym .Gym (name = "Bellefield Hall: Fitness Center & Weight Room" , date = "07/09/2024 09:05 AM" , count = 50 , percentage = 0 ),
20
- gym .Gym (name = "Bellefield Hall: Court & Dance Studio" , date = None , count = None , percentage = None ),
21
- gym .Gym (name = "Trees Hall: Fitness Center" , date = "07/09/2024 09:05 AM" , count = 70 , percentage = 58 ),
22
- gym .Gym (name = "Trees Hall: Courts" , date = "07/09/2024 09:05 AM" , count = 20 , percentage = 33 ),
18
+ gym .Gym (name = "Baierl Rec Center" , last_updated = "07/09/2024 09:05 AM" , current_count = 100 , percent_full = 50 ),
19
+ gym .Gym (
20
+ name = "Bellefield Hall: Fitness Center & Weight Room" ,
21
+ last_updated = "07/09/2024 09:05 AM" ,
22
+ current_count = 50 ,
23
+ percent_full = 0 ,
24
+ ),
25
+ gym .Gym (name = "Bellefield Hall: Court & Dance Studio" ),
26
+ gym .Gym (name = "Trees Hall: Fitness Center" , last_updated = "07/09/2024 09:05 AM" , current_count = 70 , percent_full = 58 ),
27
+ gym .Gym (name = "Trees Hall: Courts" , last_updated = "07/09/2024 09:05 AM" , current_count = 20 , percent_full = 33 ),
23
28
gym .Gym (
24
29
name = "Trees Hall: Racquetball Courts & Multipurpose Room" ,
25
- date = "07/09/2024 09:05 AM" ,
26
- count = 10 ,
27
- percentage = 25 ,
30
+ last_updated = "07/09/2024 09:05 AM" ,
31
+ current_count = 10 ,
32
+ percent_full = 25 ,
28
33
),
29
- gym .Gym (name = "William Pitt Union" , date = "07/09/2024 09:05 AM" , count = 25 , percentage = 25 ),
30
- gym .Gym (name = "Pitt Sports Dome" , date = "07/09/2024 09:05 AM" , count = 15 , percentage = 20 ),
34
+ gym .Gym (name = "William Pitt Union" , last_updated = "07/09/2024 09:05 AM" , current_count = 25 , percent_full = 25 ),
35
+ gym .Gym (name = "Pitt Sports Dome" , last_updated = "07/09/2024 09:05 AM" , current_count = 15 , percent_full = 20 ),
31
36
]
32
37
33
38
self .assertEqual (gym_info , expected_info )
@@ -37,7 +42,9 @@ def test_get_gym_info(self):
37
42
responses .add (responses .GET , gym .GYM_URL , body = mock_gym_html , status = 200 )
38
43
39
44
gym_info = gym .get_gym_info ("Baierl Rec Center" )
40
- expected_info = gym .Gym (name = "Baierl Rec Center" , date = "07/09/2024 09:05 AM" , count = 100 , percentage = 50 )
45
+ expected_info = gym .Gym (
46
+ name = "Baierl Rec Center" , last_updated = "07/09/2024 09:05 AM" , current_count = 100 , percent_full = 50
47
+ )
41
48
self .assertEqual (gym_info , expected_info )
42
49
43
50
@responses .activate
0 commit comments