Create a fresh project in ProjectFile mode.
(api_client, title: str = "Multi-Source Test")
| 33 | |
| 34 | |
| 35 | def _new_project(api_client, title: str = "Multi-Source Test") -> None: |
| 36 | """Create a fresh project in ProjectFile mode.""" |
| 37 | api_client.command("project.new") |
| 38 | time.sleep(0.2) |
| 39 | try: |
| 40 | api_client.command("project.setTitle", {"title": title}) |
| 41 | except Exception: |
| 42 | pass |
| 43 | api_client.configure_frame_parser( |
| 44 | start_sequence="/*", |
| 45 | end_sequence="*/", |
| 46 | checksum_algorithm="", |
| 47 | operation_mode=0, # ProjectFile |
| 48 | ) |
| 49 | time.sleep(0.1) |
| 50 | |
| 51 | |
| 52 | # --------------------------------------------------------------------------- |
no test coverage detected