MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_n1

Function test_n1

tests/commands/hazmat_test.py:80–89  ·  view source on GitHub ↗
(capfd)

Source from the content-addressed store, hash-verified

78
79
80def test_n1(capfd):
81 ret = main((
82 'n1', sys.executable, '-c', 'import sys; print(sys.argv[1:])',
83 '--',
84 'foo', 'bar', 'baz',
85 ))
86 assert ret == 0
87 out, err = capfd.readouterr()
88 assert _norm(out) == "['foo']\n['bar']\n['baz']\n"
89 assert err == ''
90
91
92def test_n1_some_error_code():

Callers

nothing calls this directly

Calls 2

mainFunction · 0.90
_normFunction · 0.70

Tested by

no test coverage detected