mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-31 14:30:13 +03:00
Tests cover: - get_nodes_handler: fields filter, invalid fields rejection - create_node_handler: name passthrough, fields filter, fields validation, batch mode inherited template_id, missing project_id - create_link_handler: compact format, standard format, fields validation - appliance_get, appliance_install with version - list_templates: fields filter, invalid field error
13 lines
246 B
Python
13 lines
246 B
Python
"""MCP test fixtures."""
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def ctx():
|
|
"""Standard gns3_ctx for handlers."""
|
|
return {
|
|
"server_url": "http://192.168.1.3:3080",
|
|
"jwt_token": "test-token",
|
|
"jwt_username": "admin",
|
|
}
|