MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / test_task_print_literal

Function test_task_print_literal

tools-tests/tasks_test.py:110–115  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

108
109
110def test_task_print_literal(tmp_path):
111 task = tasks.AllOsTask("test_task", ["notacommand"], literal="literal")
112 runner = tasks.TaskRunner(tmp_dir=tmp_path)
113 runner.run(task)
114 with open(pathlib.Path(runner.tmpdir) / runner.default_name) as fh:
115 assert "literal" in fh.read()
116
117
118def test_task_timeout(tmp_path):

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
readMethod · 0.80

Tested by

no test coverage detected