MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / test_invalid_data

Function test_invalid_data

qrcode/tests/test_release.py:13–16  ·  view source on GitHub ↗
(mock_file)

Source from the content-addressed store, hash-verified

11
12@mock.patch(OPEN, new_callable=mock.mock_open, read_data=".TH invalid")
13def test_invalid_data(mock_file):
14 update_manpage({"name": "qrcode", "new_version": "1.23"})
15 mock_file.assert_called()
16 mock_file().write.assert_not_called()
17
18
19@mock.patch(OPEN, new_callable=mock.mock_open, read_data=DATA)

Callers

nothing calls this directly

Calls 1

update_manpageFunction · 0.90

Tested by

no test coverage detected