@@ -54,10 +54,10 @@ def test_exists_nonexistent(self):
5454
5555 def test_list (self ):
5656 """Test listing flows from the V1 API."""
57- flows_df = self .resource .list (limit = 10 )
57+ limit = 10
58+ flows_df = self .resource .list (limit = limit )
5859
59- self .assertGreater (len (flows_df ), 0 )
60- self .assertLessEqual (len (flows_df ), 10 )
60+ self .assertEqual (len (flows_df ), limit )
6161 self .assertIn ("id" , flows_df .columns )
6262 self .assertIn ("name" , flows_df .columns )
6363 self .assertIn ("version" , flows_df .columns )
@@ -67,16 +67,18 @@ def test_list(self):
6767
6868 def test_list_with_offset (self ):
6969 """Test listing flows with offset from the V1 API."""
70- flows_df = self .resource .list (limit = 5 , offset = 10 )
70+ limit = 5
71+ flows_df = self .resource .list (limit = limit , offset = 10 )
7172
72- self .assertGreater (len (flows_df ), 0 )
73- self .assertLessEqual (len (flows_df ), 5 )
73+ self .assertEqual (len (flows_df ), limit )
7474
7575 def test_list_with_tag_limit_offset (self ):
7676 """Test listing flows with filters from the V1 API."""
77- flows_df = self .resource .list (tag = "weka" , limit = 5 , offset = 0 , uploader = 16 )
77+ limit = 5
78+ flows_df = self .resource .list (tag = "weka" , limit = limit , offset = 0 , uploader = 16 )
7879
7980 self .assertTrue (hasattr (flows_df , "columns" ))
81+ self .assertLessEqual (len (flows_df ), limit )
8082 if len (flows_df ) > 0 :
8183 self .assertIn ("id" , flows_df .columns )
8284
0 commit comments