MCPcopy Create free account
hub / github.com/JameZUK/Arkana / test_escape_python_string_basic

Method test_escape_python_string_basic

tests/test_export_scripts.py:38–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 """Test helper functions used by both export tools."""
37
38 def test_escape_python_string_basic(self):
39 from arkana.mcp.tools_export import _escape_python_string
40 assert _escape_python_string("hello") == "hello"
41 assert _escape_python_string('say "hi"') == 'say \\"hi\\"'
42 assert _escape_python_string("back\\slash") == "back\\\\slash"
43 assert _escape_python_string("new\nline") == "new\\nline"
44
45 def test_get_file_metadata(self, _setup_state):
46 from arkana.mcp.tools_export import _get_file_metadata

Callers

nothing calls this directly

Calls 1

_escape_python_stringFunction · 0.90

Tested by

no test coverage detected