소스 검색

Adding check for the file to see if it exists

Beto 1 년 전
부모
커밋
fd7041aa64
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tests/test_train_utils.py

+ 2 - 0
tests/test_train_utils.py

@@ -113,4 +113,6 @@ def test_save_to_json(temp_output_dir, mocker):
     )
 
     assert results["metrics_filename"] not in ["", None]
+    assert os.path.isfile(results["metrics_filename"])
+