MCPcopy Create free account
hub / github.com/tanelpoder/0xtools / test_peek_functionality

Function test_peek_functionality

xtop/tests/test_tui_basic.py:396–422  ·  view source on GitHub ↗

Test 6: Test peek functionality with '?' key

()

Source from the content-addressed store, hash-verified

394
395@pytest.mark.asyncio
396async def test_peek_functionality():
397 """Test 6: Test peek functionality with '?' key"""
398 wrapper = XtopTUIWrapper(
399 datadir=XCAPTURE_DATADIR,
400 initial_group_cols=['state']
401 )
402 app = wrapper.create_app()
403
404 async with app.run_test(size=(120, 40)) as pilot:
405 await pilot.pause()
406 await wait_for_table_load(pilot)
407
408 # Navigate to a cell
409 await pilot.press("down")
410 await pilot.pause()
411 await pilot.press("right")
412 await pilot.pause()
413
414 # Try peek
415 await pilot.press("?")
416 await pilot.pause()
417
418 # Close peek (if opened)
419 await pilot.press("escape")
420 await pilot.pause()
421
422 print("✓ Test 6 passed: Peek functionality works")
423
424
425@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 3

create_appMethod · 0.95
wait_for_table_loadFunction · 0.85
XtopTUIWrapperClass · 0.70

Tested by

no test coverage detected