@@ -71,7 +71,7 @@ def test_retrieve_project_language(self):
71
71
"""
72
72
project_id = "pro_test_2b67b11a030b66e0a6dd61a56b49079a"
73
73
project = self .api .retrieve_project (id = project_id , accept_language = "fr" ).data
74
- self .assertIn ("Projet " , project .name ) # French
74
+ self .assertIn ("Démo " , project .name ) # French
75
75
76
76
def test_retrieve_projects (self ):
77
77
"""Test case for retrieve_projects
@@ -87,13 +87,13 @@ def test_retrieve_projects(self):
87
87
self .assertEqual (project .production , False )
88
88
self .assertGreater (project .average_price_per_tonne_cents_usd , 0 )
89
89
self .assertGreater (project .remaining_mass_g , 0 )
90
- self .assertEqual (project .standard , None )
90
+ self .assertIsInstance (project .standard , object )
91
91
self .assertIsInstance (project .name , str )
92
92
self .assertTrue (project .description )
93
93
self .assertIsInstance (project .country , str )
94
94
self .assertIsInstance (project .type , str )
95
95
self .assertIsInstance (project .developer , str )
96
- self .assertTrue ( isinstance ( project .photos , list ) )
96
+ self .assertIsInstance ( project .photos , list )
97
97
98
98
def test_retrieve_biomass_projects (self ):
99
99
"""Test case for retrieve_projects with a type filter
@@ -141,7 +141,7 @@ def test_retrieve_projects_language(self):
141
141
projects = self .api .retrieve_projects (accept_language = "fr" ).data
142
142
143
143
for project in projects :
144
- self .assertIn ("Projet " , project .name ) # French
144
+ self .assertIn ("Démo " , project .name ) # French
145
145
146
146
147
147
if __name__ == "__main__" :
0 commit comments