Skip to content

Commit 18a65e1

Browse files
committed
fix typecheck and test
1 parent 53e058f commit 18a65e1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/v3/compatibility_suite/test_v3_http_matching.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import pickle
44
import re
55
from pathlib import Path
6+
from typing import Generator
67

78
import pytest
89
from pytest_bdd import (
@@ -125,7 +126,9 @@ def an_expected_request_with_header(name: str, value: str, temp_dir: Path) -> No
125126

126127

127128
@when("the request is compared to the expected one", target_fixture="provider_url")
128-
def the_request_is_compared_to_the_expected_one(temp_dir: Path) -> None:
129+
def the_request_is_compared_to_the_expected_one(
130+
temp_dir: Path,
131+
) -> Generator[URL, None, None]:
129132
"""The request is compared to the expected one."""
130133
yield from start_provider(temp_dir)
131134

@@ -165,7 +168,7 @@ def the_comparison_should_not_be_ok(
165168
@then(
166169
parsers.parse(
167170
'the mismatches will contain a mismatch with error "{mismatch_key}" '
168-
"-> \"Expected header '{header_name}' to have value '{expected_value}'"
171+
"-> \"Expected header '{header_name}' to have value '{expected_value}' "
169172
"but was '{actual_value}'\""
170173
)
171174
)

0 commit comments

Comments
 (0)