From d4d558b62293203181eccec7d38dc7ecdf74ecae Mon Sep 17 00:00:00 2001 From: Soham Date: Mon, 4 May 2026 17:27:25 -0700 Subject: [PATCH] fix windows ci issue --- tests/test_cli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 4e15a7b..89bdaae 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,5 +1,6 @@ """Tests for sentrysearch.cli (Click CLI).""" +import os from unittest.mock import MagicMock, patch import pytest @@ -753,7 +754,7 @@ def test_search_save_top_1_writes_cache(self, runner, _isolated_cache): assert result.exit_code == 0, result.output assert _isolated_cache.is_file() data = self._read_cache(_isolated_cache) - assert data["path"] == "/tmp/clip1.mp4" + assert data["path"] == os.path.abspath("/tmp/clip1.mp4") assert data["saved_by"] == "sentrysearch" assert "Saved clip path cached for sentryblur" in result.output @@ -776,7 +777,7 @@ def test_search_save_top_3_caches_rank_1(self, runner, _isolated_cache): assert result.exit_code == 0, result.output data = self._read_cache(_isolated_cache) - assert data["path"] == "/tmp/rank1.mp4" + assert data["path"] == os.path.abspath("/tmp/rank1.mp4") def test_img_save_top_writes_cache(self, runner, tmp_path, _isolated_cache): img_path = tmp_path / "q.jpg" @@ -798,7 +799,7 @@ def test_img_save_top_writes_cache(self, runner, tmp_path, _isolated_cache): assert result.exit_code == 0, result.output data = self._read_cache(_isolated_cache) - assert data["path"] == "/tmp/img_clip.mp4" + assert data["path"] == os.path.abspath("/tmp/img_clip.mp4") def test_overlay_writes_cache(self, runner, tmp_path, _isolated_cache): video = tmp_path / "in.mp4"