@pytest.fixture(scope='session', autouse=True)
def mock_has_unpartitioned_events():
    with mock.patch.object(UnifiedJob, 'has_unpartitioned_events', new=False) as _fixture:
        (yield _fixture)
@pytest.fixture(scope='session', autouse=True)
def mock_has_unpartitioned_events():
    with mock.patch.object(UnifiedJob, 'has_unpartitioned_events', new=False) as _fixture:
        (yield _fixture)