Преглед на файлове

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