From e43517c11d5adcfd403a0ce68b52e76ed14e9daa Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Fri, 26 Aug 2022 10:51:01 +0100
Subject: [PATCH] Fix some more tests looking for tmp_path

---
 tests/test_xfel_calibrate/test_cli.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_xfel_calibrate/test_cli.py b/tests/test_xfel_calibrate/test_cli.py
index 1bb0c1a27..c6cda5cd9 100644
--- a/tests/test_xfel_calibrate/test_cli.py
+++ b/tests/test_xfel_calibrate/test_cli.py
@@ -152,7 +152,7 @@ class TestTutorialNotebook:
     ):
         assert "sbatch" in calibrate_call.out
         assert "--job-name xfel_calibrate" in calibrate_call.out
-        assert str(calibrate_call.tmp_path) in calibrate_call.out
+        assert str(calibrate_call.reports_dir) in calibrate_call.out
 
         assert calibrate_call.err == ""
 
@@ -210,7 +210,7 @@ class TestTutorialNotebook:
         expected_contains = {
             "request_time": str(today),
             "submission_time": str(today),
-            "run_path": str(calibrate_call.tmp_path),
+            "cal_work_dir": str(calibrate_call.reports_dir),
             # TODO: add a test checking that the out folder is correct
             # reffer to: https://git.xfel.eu/gitlab/detectors/pycalibration/issues/52
             "out_path": str(mock_proposal.path_proc),
-- 
GitLab