Load image project and configure network driver.
(
api_client, detection_mode="autodetect", start_hex="", end_hex=""
)
| 228 | |
| 229 | |
| 230 | def _setup_image_project( |
| 231 | api_client, detection_mode="autodetect", start_hex="", end_hex="" |
| 232 | ): |
| 233 | """Load image project and configure network driver.""" |
| 234 | project = _image_project(detection_mode, start_hex, end_hex) |
| 235 | api_client.load_project_from_json(project) |
| 236 | time.sleep(0.2) |
| 237 | api_client.set_operation_mode("project") |
| 238 | time.sleep(0.1) |
| 239 | result = api_client.command("project.activate") |
| 240 | time.sleep(0.2) |
| 241 | assert result["loaded"], "Project must load into FrameBuilder" |
| 242 | api_client.configure_network(host="127.0.0.1", port=9000, socket_type="tcp") |
| 243 | |
| 244 | |
| 245 | # --------------------------------------------------------------------------- |
no test coverage detected