File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+
13from typer .testing import CliRunner
24
35from microlens_submit .cli import app
@@ -41,9 +43,9 @@ def test_add_solution_with_paths(tmp_path):
4143 sub = load ("." )
4244 event = sub .get_event ("EVENT001" )
4345 sol = next (iter (event .solutions .values ()))
44- assert sol .lightcurve_plot_path == "plots/lc.png"
45- assert sol .lens_plane_plot_path == "plots/lp.png"
46- assert sol .posterior_path == "posteriors/samples.h5"
46+ assert Path ( sol .lightcurve_plot_path ) == Path ( "plots/lc.png" )
47+ assert Path ( sol .lens_plane_plot_path ) == Path ( "plots/lp.png" )
48+ assert Path ( sol .posterior_path ) == Path ( "posteriors/samples.h5" )
4749
4850
4951def test_edit_solution_paths (tmp_path ):
@@ -95,9 +97,9 @@ def test_edit_solution_paths(tmp_path):
9597 # Verify
9698 sub = load ("." )
9799 sol = sub .get_event ("EVENT001" ).solutions [sol_id ]
98- assert sol .lightcurve_plot_path == "plots/new_lc.png"
99- assert sol .lens_plane_plot_path == "plots/new_lp.png"
100- assert sol .posterior_path == "posteriors/new_samples.h5"
100+ assert Path ( sol .lightcurve_plot_path ) == Path ( "plots/new_lc.png" )
101+ assert Path ( sol .lens_plane_plot_path ) == Path ( "plots/new_lp.png" )
102+ assert Path ( sol .posterior_path ) == Path ( "posteriors/new_samples.h5" )
101103
102104 # 4. Clear paths
103105 result = runner .invoke (
You can’t perform that action at this time.
0 commit comments