@pytest.fixture
def get_outcome_checker_mock():

    def get_outcome_checker_mock(outcome: OutcomeStatus):
        return type('', (), {'check': (lambda *params: outcome)})
    return get_outcome_checker_mock
@pytest.fixture
def get_outcome_checker_mock():

    def get_outcome_checker_mock(outcome: OutcomeStatus):
        return type(, (), {'check': (lambda *params: outcome)})
    return get_outcome_checker_mock