Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
41
def
stdin_as_string(content):
42
temp = sys.stdin
43
sys.stdin = io.TextIOWrapper(io.BufferedReader(content))
44
yield
45
sys.stdin = temp
46
47
48
class
CSVKitTestCase(unittest.TestCase):
Callers
15
test_stdin
Method · 0.90
test_quotechar
Method · 0.90
test_doublequote
Method · 0.90
test_escapechar
Method · 0.90
test_quotechar
Method · 0.90
test_doublequote
Method · 0.90
test_escapechar
Method · 0.90
test_stdin
Method · 0.90
test_stdin_and_filename
Method · 0.90
test_query
Method · 0.90
test_query_empty
Method · 0.90
test_label_default_stdin
Method · 0.90
Calls
no outgoing calls
Tested by
15
test_stdin
Method · 0.72
test_quotechar
Method · 0.72
test_doublequote
Method · 0.72
test_escapechar
Method · 0.72
test_quotechar
Method · 0.72
test_doublequote
Method · 0.72
test_escapechar
Method · 0.72
test_stdin
Method · 0.72
test_stdin_and_filename
Method · 0.72
test_query
Method · 0.72
test_query_empty
Method · 0.72
test_label_default_stdin
Method · 0.72