MCPcopy Create free account
hub / github.com/pytest-dev/pytest-bdd / make_python_docstring

Function make_python_docstring

src/pytest_bdd/scenario.py:413–415  ·  view source on GitHub ↗

Make a python docstring literal out of a given string.

(string: str)

Source from the content-addressed store, hash-verified

411
412
413def make_python_docstring(string: str) -> str:
414 """Make a python docstring literal out of a given string."""
415 return '"""{}."""'.format(string.replace('"""', '\\"\\"\\"'))
416
417
418def make_string_literal(string: str) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…