Commit da7e1e07 authored by Wout De Nolf's avatar Wout De Nolf
Browse files

test_scan_saving_path: exclude "last_accessed" from comparison as reading affects it

parent 972b29b7
Pipeline #51612 passed with stages
in 147 minutes and 3 seconds
......@@ -111,6 +111,7 @@ does not exist directory {root_path}
expected = scan_saving_repr.split("\n")
actual = info(scan_saving).split("\n")
expected[19] = actual[19] # last_accessed for read/write
if writer == "null":
expected = expected[:-1]
expected[-3:] = ["---------", "NO SAVING", "---------"]
......@@ -122,13 +123,13 @@ does not exist directory {root_path}
# Test scan saving related things after a scan
if writer == "nexus":
s = ct(0.1, session.env_dict["diode"])
assert s.scan_info["filename"] == ""
scan = ct(0.1, session.env_dict["diode"])
assert scan.scan_info["filename"] == ""
else:
s = sct(0.1, session.env_dict["diode"], save=True, name="sname")
assert s.scan_info["data_policy"] == "None"
assert s.scan_info["data_writer"] == writer
assert s.node.parent.db_name == scan_saving.scan_parent_db_name
scan = sct(0.1, session.env_dict["diode"], save=True, name="sname")
assert scan.scan_info["data_policy"] == "None"
assert scan.scan_info["data_writer"] == writer
assert scan.node.parent.db_name == scan_saving.scan_parent_db_name
def test_session_scan_saving_config(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment