This test works.
def test_mock_ingest(): with mock.patch(\'app.ingest.ingest\') as mock_ingest: app.ingest.