feat(style): Fix 1-space indentation in 27 files
Files corrected: - src/fuzzy_anchor.py (18 violations) - src/patch_modal.py (14 violations) - scripts/extract_symbols.py (4 violations) - scripts/tasks/download_fonts.py (8 violations) - tests/: 23 files with indentation issues All files verified with py_compile. Remaining 4 files (test_api_events.py, test_discussion_takes_gui.py, test_gui_updates.py, test_headless_service.py) have complex multi-line with statements that require manual correction.
This commit is contained in:
@@ -11,40 +11,40 @@ from src import api_hook_client
|
||||
|
||||
@pytest.mark.integration
|
||||
def test_mma_epic_lifecycle(live_gui) -> None:
|
||||
client = api_hook_client.ApiHookClient()
|
||||
assert client.wait_for_server(timeout=15)
|
||||
client = api_hook_client.ApiHookClient()
|
||||
assert client.wait_for_server(timeout=15)
|
||||
|
||||
# Reset
|
||||
client.click("btn_reset")
|
||||
time.sleep(2)
|
||||
# Reset
|
||||
client.click("btn_reset")
|
||||
time.sleep(2)
|
||||
|
||||
# Set provider and path
|
||||
client.set_value("current_provider", "gemini_cli")
|
||||
time.sleep(2)
|
||||
mock_path = os.path.abspath("tests/mock_gemini_cli.py")
|
||||
client.set_value("gcli_path", f'"{sys.executable}" "{mock_path}"')
|
||||
time.sleep(2)
|
||||
# Set provider and path
|
||||
client.set_value("current_provider", "gemini_cli")
|
||||
time.sleep(2)
|
||||
mock_path = os.path.abspath("tests/mock_gemini_cli.py")
|
||||
client.set_value("gcli_path", f'"{sys.executable}" "{mock_path}"')
|
||||
time.sleep(2)
|
||||
|
||||
# Set epic and click
|
||||
client.set_value("mma_epic_input", "Add timestamps")
|
||||
time.sleep(1)
|
||||
client.click("btn_mma_plan_epic")
|
||||
# Set epic and click
|
||||
client.set_value("mma_epic_input", "Add timestamps")
|
||||
time.sleep(1)
|
||||
client.click("btn_mma_plan_epic")
|
||||
|
||||
# Wait and check
|
||||
for i in range(30):
|
||||
time.sleep(1)
|
||||
status = client.get_mma_status()
|
||||
proposed = status.get("proposed_tracks", [])
|
||||
usage = status.get("mma_tier_usage", {})
|
||||
t1 = usage.get("Tier 1", {})
|
||||
# Wait and check
|
||||
for i in range(30):
|
||||
time.sleep(1)
|
||||
status = client.get_mma_status()
|
||||
proposed = status.get("proposed_tracks", [])
|
||||
usage = status.get("mma_tier_usage", {})
|
||||
t1 = usage.get("Tier 1", {})
|
||||
|
||||
print(
|
||||
f"[{i}] Tier1: in={t1.get('input')}, out={t1.get('output')}, proposed={len(proposed)}",
|
||||
flush=True,
|
||||
)
|
||||
print(
|
||||
f"[{i}] Tier1: in={t1.get('input')}, out={t1.get('output')}, proposed={len(proposed)}",
|
||||
flush=True,
|
||||
)
|
||||
|
||||
if proposed:
|
||||
print(f"SUCCESS: {proposed}", flush=True)
|
||||
break
|
||||
if proposed:
|
||||
print(f"SUCCESS: {proposed}", flush=True)
|
||||
break
|
||||
|
||||
assert len(proposed) > 0, f"No tracks: {proposed}"
|
||||
assert len(proposed) > 0, f"No tracks: {proposed}"
|
||||
|
||||
Reference in New Issue
Block a user