Private
Public Access
0
0

gemini quota exhausted: fixing regressions in test suite

This commit is contained in:
2026-05-16 14:45:06 -04:00
parent 49082e5036
commit bf5b426c24
17 changed files with 223 additions and 152 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import pytest
from unittest.mock import MagicMock, patch, ANY
from src import gui_2
from src.gui_2 import App
@pytest.fixture
@@ -35,7 +36,7 @@ def app_instance():
yield app
def test_render_synthesis_panel(app_instance):
"""Verify that _render_synthesis_panel renders checkboxes for takes and input for prompt."""
"""Verify that render_synthesis_panel renders checkboxes for takes and input for prompt."""
with patch('src.gui_2.imgui') as mock_imgui, \
patch('src.gui_2.imscope') as mock_imscope:
mock_imgui.checkbox.return_value = (False, False)
@@ -52,7 +53,7 @@ def test_render_synthesis_panel(app_instance):
mock_imscope.style_var.return_value.__enter__.return_value = None
# Call the method we are testing
app_instance._render_synthesis_panel()
gui_2.render_synthesis_panel(app_instance)
# 1. Assert imgui.checkbox is called for each take in project_dict['discussion']['discussions']
discussions = app_instance.project['discussion']['discussions']