From bb6f355a792ffa3e1b485050f1adc162ef76eb37 Mon Sep 17 00:00:00 2001 From: Harim Kang Date: Thu, 30 Mar 2023 11:16:18 +0900 Subject: [PATCH] Update tests/integration/cli/test_cli.py Co-authored-by: Eunwoo Shin --- tests/integration/cli/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/cli/test_cli.py b/tests/integration/cli/test_cli.py index 53c21c11e3d..f1b996ea24b 100644 --- a/tests/integration/cli/test_cli.py +++ b/tests/integration/cli/test_cli.py @@ -150,7 +150,7 @@ def test_otx_train_wo_output_args(self, tmp_dir_path): assert os.path.exists(os.path.join(output_path, "latest_trained_model", "models")) assert os.path.exists(os.path.join(output_path, "latest_trained_model", "models", "weights.pth")) assert os.path.exists(os.path.join(output_path, "latest_trained_model", "models", "label_schema.json")) - file_list = file_list[:-1] # Remove latest from list, then file_list[-1] is latest + file_list.remove("latest_trained_model") assert os.path.exists(os.path.join(output_path, file_list[-1])) assert os.path.exists(os.path.join(output_path, file_list[-1], "models")) assert os.path.exists(os.path.join(output_path, file_list[-1], "models", "weights.pth"))