浏览代码

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"])
+