MCPcopy Create free account
hub / github.com/lincolnloop/python-qrcode / test_no_change

Function test_no_change

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

Source from the content-addressed store, hash-verified

24
25@mock.patch(OPEN, new_callable=mock.mock_open, read_data=DATA)
26def test_no_change(mock_file):
27 update_manpage({"name": "qrcode", "new_version": "version"})
28 mock_file.assert_called()
29 mock_file().write.assert_not_called()
30
31
32@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