Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lincolnloop/python-qrcode
/ test_bad_factory
Function
test_bad_factory
qrcode/tests/test_script.py:59–61 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
57
58
59
def
test_bad_factory():
60
with
pytest.raises(SystemExit):
61
main([
"testtext"
,
"--factory"
,
"nope"
])
62
63
64
@mock.patch.object(sys,
"argv"
,
"qr testtext output"
.split())
Callers
nothing calls this directly
Calls
1
main
Function · 0.90
Tested by
no test coverage detected