MCPcopy
hub / github.com/tanelpoder/0xtools / create_app

Method create_app

xtop/tests/test_tui_basic.py:59–75  ·  view source on GitHub ↗

Create an instance of the app

(self)

Source from the content-addressed store, hash-verified

57 self.initial_group_cols = initial_group_cols or ['state'] # Default to just 'state'
58
59 def create_app(self):
60 """Create an instance of the app"""
61 # Override the default grouping to just 'state' for tests
62 original_defaults = QueryEngine.DEFAULT_GROUP_COLS.copy()
63 for key in original_defaults:
64 QueryEngine.DEFAULT_GROUP_COLS[key] = self.initial_group_cols
65
66 app = self.app_class(
67 datadir=self.datadir,
68 low_time=self.low_time,
69 high_time=self.high_time
70 )
71
72 # Restore original defaults after creating app
73 QueryEngine.DEFAULT_GROUP_COLS = original_defaults
74
75 return app
76
77
78# Helper functions for navigation

Callers 8

test_tui_startupFunction · 0.95
test_grouping_menuFunction · 0.95
test_add_single_columnFunction · 0.95
test_latency_columnsFunction · 0.95
test_peek_functionalityFunction · 0.95
test_navigation_keysFunction · 0.95
test_cli_mappingFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected