@@ -45,6 +45,11 @@ def test_refresh(self):
4545 results = dune .refresh (self .query ).get_rows ()
4646 self .assertGreater (len (results ), 0 )
4747
48+ def test_refresh_performance_large (self ):
49+ dune = DuneClient (self .valid_api_key )
50+ results = dune .refresh (self .query , performance = "large" ).get_rows ()
51+ self .assertGreater (len (results ), 0 )
52+
4853 def test_refresh_into_dataframe (self ):
4954 dune = DuneClient (self .valid_api_key )
5055 pd = dune .refresh_into_dataframe (self .query )
@@ -160,6 +165,16 @@ def test_invalid_job_id_error(self):
160165 "{'error': 'The requested execution ID (ID: Wonky Job ID) is invalid.'}" ,
161166 )
162167
168+ def test_get_latest_result_with_query_object (self ):
169+ dune = DuneClient (self .valid_api_key )
170+ results = dune .get_latest_result (self .query ).get_rows ()
171+ self .assertGreater (len (results ), 0 )
172+
173+ def test_get_latest_result_with_query_id (self ):
174+ dune = DuneClient (self .valid_api_key )
175+ results = dune .get_latest_result (self .query .query_id ).get_rows ()
176+ self .assertGreater (len (results ), 0 )
177+
163178
164179if __name__ == "__main__" :
165180 unittest .main ()
0 commit comments