@@ -91,6 +91,7 @@ def setUp(self):
9191 self .gpu_num = "1"
9292 self .output = "DJI_0068.csv"
9393 self .example = "tests/examples"
94+ self .patch_index = [1 ]
9495
9596 def tearDown (self ):
9697 # delete output
@@ -119,7 +120,7 @@ def test_hub_checkpoint_archive(self, create_mock):
119120 self .assertTrue (file_exists (checkpoint_path ))
120121
121122 # check output
122- self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " ))
123+ self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " , self . patch_index ))
123124
124125 @patch ("kabr_tools.miniscene2behavior.create_model" )
125126 def test_hub_checkpoint (self , create_mock ):
@@ -149,7 +150,7 @@ def test_hub_checkpoint(self, create_mock):
149150 config_path .replace (download_folder , "" ))
150151
151152 # check output
152- self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " ))
153+ self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " , self . patch_index ))
153154
154155 @patch ("kabr_tools.miniscene2behavior.create_model" )
155156 def test_hub_checkpoint_config (self , create_mock ):
@@ -180,7 +181,7 @@ def test_hub_checkpoint_config(self, create_mock):
180181 config_path .replace (download_folder , "" ))
181182
182183 # check output
183- self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " ))
184+ self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " , self . patch_index ))
184185
185186 @patch ("kabr_tools.miniscene2behavior.create_model" )
186187 def test_local_checkpoint (self , create_mock ):
@@ -207,7 +208,7 @@ def test_local_checkpoint(self, create_mock):
207208 self .assertTrue (same_path (self .config , config_path ))
208209
209210 # check output
210- self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " ))
211+ self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " , self . patch_index ))
211212
212213 @patch ("kabr_tools.miniscene2behavior.create_model" )
213214 def test_local_checkpoint_config (self , create_mock ):
@@ -245,7 +246,7 @@ def test_local_checkpoint_config(self, create_mock):
245246 self .assertTrue (same_path (self .config , config_path ))
246247
247248 # check output
248- self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " ))
249+ self .assertTrue (csv_equal (self .output , f"{ self .example } /{ self .output } " , self . patch_index ))
249250
250251 def test_no_checkpoint (self ):
251252 # annotate mini-scenes
0 commit comments