26 lines
608 B
Python
26 lines
608 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
"""
|
||
|
|
Test script for Textual TUI interface
|
||
|
|
"""
|
||
|
|
|
||
|
|
import sys
|
||
|
|
import os
|
||
|
|
|
||
|
|
# Add the analyzer package to the path
|
||
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||
|
|
|
||
|
|
from analyzer.analysis.core import EthernetAnalyzer
|
||
|
|
from analyzer.tui.textual.app_v2 import StreamLensAppV2
|
||
|
|
|
||
|
|
def main():
|
||
|
|
"""Test the Textual interface with mock data"""
|
||
|
|
|
||
|
|
# Create analyzer with some sample data
|
||
|
|
analyzer = EthernetAnalyzer(enable_realtime=False)
|
||
|
|
|
||
|
|
# Create and run the Textual app V2
|
||
|
|
app = StreamLensAppV2(analyzer)
|
||
|
|
app.run()
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
main()
|