Skip to content

Commit 03097f7

Browse files
committed
Release version 0.17.5
1 parent bc209e2 commit 03097f7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/test_cli_solution_files.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from pathlib import Path
2+
13
from typer.testing import CliRunner
24

35
from 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

4951
def 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(

0 commit comments

Comments
 (0)