refactor(tests): Add strict type hints to third batch of test files
This commit is contained in:
@@ -3,6 +3,7 @@ from unittest.mock import patch, MagicMock
|
||||
import importlib.util
|
||||
import sys
|
||||
import os
|
||||
from typing import Any
|
||||
import dearpygui.dearpygui as dpg
|
||||
|
||||
# Ensure project root is in path for imports
|
||||
@@ -40,7 +41,7 @@ def app_instance() -> None:
|
||||
yield app
|
||||
dpg.destroy_context()
|
||||
|
||||
def test_telemetry_panel_updates_correctly(app_instance):
|
||||
def test_telemetry_panel_updates_correctly(app_instance: Any) -> None:
|
||||
"""
|
||||
Tests that the _update_performance_diagnostics method correctly updates
|
||||
DPG widgets based on the stats from ai_client.
|
||||
@@ -71,7 +72,7 @@ def test_telemetry_panel_updates_correctly(app_instance):
|
||||
# Assert Gemini-specific widget was hidden
|
||||
mock_configure_item.assert_any_call("gemini_cache_label", show=False)
|
||||
|
||||
def test_cache_data_display_updates_correctly(app_instance):
|
||||
def test_cache_data_display_updates_correctly(app_instance: Any) -> None:
|
||||
"""
|
||||
Tests that the _update_performance_diagnostics method correctly updates the
|
||||
GUI with Gemini cache statistics when the provider is set to Gemini.
|
||||
|
||||
Reference in New Issue
Block a user