mirror of
https://github.com/cs01/gdbgui
synced 2024-11-17 07:48:57 +01:00
12 lines
390 B
Python
12 lines
390 B
Python
from gdbgui.server import sessionmanager
|
|
|
|
|
|
def test_SessionManager():
|
|
manager = sessionmanager.SessionManager()
|
|
db_session = manager.add_new_debug_session(
|
|
gdb_command="gdb", mi_version="mi3", client_id="test"
|
|
)
|
|
pid = manager.get_pid_from_debug_session(db_session)
|
|
assert pid
|
|
dashboard_data = manager.get_dashboard_data()
|
|
assert len(dashboard_data) == 1
|