(mock_file)
| 24 | |
| 25 | @mock.patch(OPEN, new_callable=mock.mock_open, read_data=DATA) |
| 26 | def 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) |
nothing calls this directly
no test coverage detected