@@ -36,8 +36,8 @@ class TestFlow(TestBase):
3636 _multiprocess_can_split_ = True
3737
3838 def test_get_flow (self ):
39- # We need to use the production server here because 4024 is not the test
40- # server
39+ # We need to use the production server here because 4024 is not the
40+ # test server
4141 openml .config .server = self .production_server
4242
4343 flow = openml .flows .get_flow (4024 )
@@ -68,14 +68,16 @@ def test_get_flow(self):
6868 self .assertEqual (len (subflow_3 .components ), 0 )
6969
7070 def test_tagging (self ):
71- flow = openml .flows .get_flow (4024 )
71+ flow_list = openml .flows .list_flows (size = 1 )
72+ flow_id = list (flow_list .keys ())[0 ]
73+ flow = openml .flows .get_flow (flow_id )
7274 tag = "testing_tag_{}_{}" .format (self .id (), time ())
7375 flow_list = openml .flows .list_flows (tag = tag )
7476 self .assertEqual (len (flow_list ), 0 )
7577 flow .push_tag (tag )
7678 flow_list = openml .flows .list_flows (tag = tag )
7779 self .assertEqual (len (flow_list ), 1 )
78- self .assertIn (4024 , flow_list )
80+ self .assertIn (flow_id , flow_list )
7981 flow .remove_tag (tag )
8082 flow_list = openml .flows .list_flows (tag = tag )
8183 self .assertEqual (len (flow_list ), 0 )
0 commit comments