예제 #1
0
def interaction_callback(request):
    with patch.dict('os.environ',
                    {'TEST_ENVAR_INTERPOLATION': 'interpolated'}):
        yield Interaction.from_file(
            Path(
                request.fspath.join(
                    '../fixtures/test_interaction_callback.yaml')))
def interaction_regex_but_no_exact(request):
    return Interaction.from_file(
        Path(
            request.fspath.join(
                '../fixtures/test_interaction_partial_matches.yaml')))
def interaction_only_required_fields(request):
    return Interaction.from_file(
        Path(request.fspath.join('../fixtures/test_interaction_simple.yaml')))
def interaction_all_fields(request):
    return Interaction.from_file(
        Path(
            request.fspath.join('../fixtures/test_interaction_detailed.yaml')))
def interaction_all_fields_regex_in_body(request):
    ('POST', '', 'https://test.local/bad_url/details',
     _get_headers(good=False)),
    return Interaction.from_file(
        Path(
            request.fspath.join('../fixtures/test_interaction_detailed.yaml')))