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

Function _new_project

tests/integration/test_multi_source.py:35–49  ·  view source on GitHub ↗

Create a fresh project in ProjectFile mode.

(api_client, title: str = "Multi-Source Test")

Source from the content-addressed store, hash-verified

33
34
35def _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# ---------------------------------------------------------------------------

Calls 2

commandMethod · 0.80

Tested by

no test coverage detected