(self, mock_get_db)
| 132 | |
| 133 | @mock.patch.object(db.users.db_connection, 'get') |
| 134 | def test_cannot_delete_unknown_user(self, mock_get_db): |
| 135 | with tempfile.NamedTemporaryFile() as temp_file: |
| 136 | mock_get_db.return_value = db.store.create_or_open(temp_file.name) |
| 137 | |
| 138 | with self.assertRaises(db.users.UserDoesNotExistError): |
| 139 | auth.delete_account('pilot') |
| 140 | |
| 141 | @mock.patch.object(video_service, 'restart', do_nothing) |
| 142 | @mock.patch.object(db.users.db_connection, 'get') |
nothing calls this directly
no outgoing calls
no test coverage detected