From fb4a775439c20cb51f6c2df636287f09657aa66c Mon Sep 17 00:00:00 2001 From: AIOSAI Date: Sat, 16 May 2026 23:29:59 -0700 Subject: [PATCH] fix: patch test targets to avoid module/function name collision on Python 3.10 --- .../prax/tests/test_devpulse_dashboard_plugin.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/aipass/prax/tests/test_devpulse_dashboard_plugin.py b/src/aipass/prax/tests/test_devpulse_dashboard_plugin.py index 4ccbc5c0..4427bd52 100644 --- a/src/aipass/prax/tests/test_devpulse_dashboard_plugin.py +++ b/src/aipass/prax/tests/test_devpulse_dashboard_plugin.py @@ -222,9 +222,9 @@ class TestDispatchSection: class TestRefresh: """Tests for refresh.py orchestrator.""" - @patch("aipass.prax.apps.plugins.devpulse_dashboard.refresh._refresh_git") - @patch("aipass.prax.apps.plugins.devpulse_dashboard.refresh._refresh_session") - @patch("aipass.prax.apps.plugins.devpulse_dashboard.refresh._refresh_dispatch") + @patch("aipass.prax.apps.plugins.devpulse_dashboard.git_section.build_git_section") + @patch("aipass.prax.apps.plugins.devpulse_dashboard.session_section.build_session_section") + @patch("aipass.prax.apps.plugins.devpulse_dashboard.dispatch_section.build_dispatch_section") def test_refresh_all_success(self, mock_dispatch, mock_session, mock_git, branch_path): """Test refresh orchestrator calls all builders.""" from aipass.prax.apps.plugins.devpulse_dashboard.refresh import refresh @@ -237,9 +237,9 @@ class TestRefresh: mock_session.assert_called_once_with(branch_path) mock_dispatch.assert_called_once_with(branch_path) - @patch("aipass.prax.apps.plugins.devpulse_dashboard.refresh._refresh_git") - @patch("aipass.prax.apps.plugins.devpulse_dashboard.refresh._refresh_session") - @patch("aipass.prax.apps.plugins.devpulse_dashboard.refresh._refresh_dispatch") + @patch("aipass.prax.apps.plugins.devpulse_dashboard.git_section.build_git_section") + @patch("aipass.prax.apps.plugins.devpulse_dashboard.session_section.build_session_section") + @patch("aipass.prax.apps.plugins.devpulse_dashboard.dispatch_section.build_dispatch_section") def test_refresh_partial_failure(self, mock_dispatch, mock_session, mock_git, branch_path): """Test refresh continues when one section fails.""" from aipass.prax.apps.plugins.devpulse_dashboard.refresh import refresh