refactor(tests): Add strict type hints to first batch of test files
This commit is contained in:
@@ -12,7 +12,7 @@ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
||||
|
||||
from api_hook_client import ApiHookClient
|
||||
|
||||
def test_get_status_success(live_gui):
|
||||
def test_get_status_success(live_gui: tuple) -> None:
|
||||
"""
|
||||
Test that get_status successfully retrieves the server status
|
||||
when the live GUI is running.
|
||||
@@ -21,7 +21,7 @@ def test_get_status_success(live_gui):
|
||||
status = client.get_status()
|
||||
assert status == {'status': 'ok'}
|
||||
|
||||
def test_get_project_success(live_gui):
|
||||
def test_get_project_success(live_gui: tuple) -> None:
|
||||
"""
|
||||
Test successful retrieval of project data from the live GUI.
|
||||
"""
|
||||
@@ -30,7 +30,7 @@ def test_get_project_success(live_gui):
|
||||
assert 'project' in response
|
||||
# We don't assert specific content as it depends on the environment's active project
|
||||
|
||||
def test_get_session_success(live_gui):
|
||||
def test_get_session_success(live_gui: tuple) -> None:
|
||||
"""
|
||||
Test successful retrieval of session data.
|
||||
"""
|
||||
@@ -39,7 +39,7 @@ def test_get_session_success(live_gui):
|
||||
assert 'session' in response
|
||||
assert 'entries' in response['session']
|
||||
|
||||
def test_post_gui_success(live_gui):
|
||||
def test_post_gui_success(live_gui: tuple) -> None:
|
||||
"""
|
||||
Test successful posting of GUI data.
|
||||
"""
|
||||
@@ -48,7 +48,7 @@ def test_post_gui_success(live_gui):
|
||||
response = client.post_gui(gui_data)
|
||||
assert response == {'status': 'queued'}
|
||||
|
||||
def test_get_performance_success(live_gui):
|
||||
def test_get_performance_success(live_gui: tuple) -> None:
|
||||
"""
|
||||
Test successful retrieval of performance metrics.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user