Create a new project in ProjectFile mode with one group and dataset_count datasets.
(api_client, dataset_count: int = 3)
| 30 | |
| 31 | |
| 32 | def _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 | |
| 45 | def _connect_network(api_client, device_simulator): |
no test coverage detected