MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _new_project

Function _new_project

tests/integration/test_source_configure.py:32–42  ·  view source on GitHub ↗

Create a new project in ProjectFile mode with one group and dataset_count datasets.

(api_client, dataset_count: int = 3)

Source from the content-addressed store, hash-verified

30
31
32def _new_project(api_client, dataset_count: int = 3):
33 """Create a new project in ProjectFile mode with one group and dataset_count datasets."""
34 api_client.command("project.new")
35 time.sleep(0.1)
36 api_client.command("dashboard.setOperationMode", {"mode": 0})
37 time.sleep(0.1)
38 api_client.command("project.group.add", {"title": "G", "widgetType": 0})
39 time.sleep(0.1)
40 for _ in range(dataset_count):
41 api_client.command("project.dataset.add", {"groupId": 0, "options": 1})
42 time.sleep(0.1)
43
44
45def _connect_network(api_client, device_simulator):

Calls 1

commandMethod · 0.80

Tested by

no test coverage detected