MCPcopy Index your code
hub / github.com/wireservice/csvkit / stdin_as_string

Function stdin_as_string

tests/utils.py:41–45  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

39
40@contextmanager
41def stdin_as_string(content):
42 temp = sys.stdin
43 sys.stdin = io.TextIOWrapper(io.BufferedReader(content))
44 yield
45 sys.stdin = temp
46
47
48class CSVKitTestCase(unittest.TestCase):

Callers 15

test_stdinMethod · 0.90
test_quotecharMethod · 0.90
test_doublequoteMethod · 0.90
test_escapecharMethod · 0.90
test_quotecharMethod · 0.90
test_doublequoteMethod · 0.90
test_escapecharMethod · 0.90
test_stdinMethod · 0.90
test_queryMethod · 0.90
test_query_emptyMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_stdinMethod · 0.72
test_quotecharMethod · 0.72
test_doublequoteMethod · 0.72
test_escapecharMethod · 0.72
test_quotecharMethod · 0.72
test_doublequoteMethod · 0.72
test_escapecharMethod · 0.72
test_stdinMethod · 0.72
test_queryMethod · 0.72
test_query_emptyMethod · 0.72