Commit 596dfad
committed
test: make metrics_path fallback assertion Windows-safe
\`str(Path.home() / \".geno-lewm\" / \"logs\" / \"metrics.prom\")\` produces
backslash-separated output on Windows, so the previous
\`.endswith(\".geno-lewm/logs/metrics.prom\")\` assertion failed there.
Compare path components via \`.parts\` instead; the check is identical
on POSIX and works on Windows.1 parent c3c5caa commit 596dfad
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
0 commit comments