Skip to content

Commit 5d2c037

Browse files
committed
tests
1 parent 8e98d4c commit 5d2c037

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/web/server/tests/unit/isolated/test_products_middlewares.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def mock_app(mock_postgres_product_table: dict[str, Any]) -> web.Application:
6565

6666

6767
@pytest.mark.parametrize(
68-
"request_url,product_from_client,expected_product",
68+
"request_url,x_product_name_header,expected_product",
6969
[
7070
("https://tis-master.domain.io/", "tis", "tis"),
7171
("https://s4l-staging.domain.com/v0/", "s4l", "s4l"),
@@ -87,7 +87,7 @@ def mock_app(mock_postgres_product_table: dict[str, Any]) -> web.Application:
8787
)
8888
async def test_middleware_product_discovery(
8989
request_url: str,
90-
product_from_client: str | None,
90+
x_product_name_header: str | None,
9191
expected_product: str,
9292
mock_app: web.Application,
9393
):
@@ -100,8 +100,8 @@ async def test_middleware_product_discovery(
100100
headers = {
101101
"Host": url.host,
102102
}
103-
if product_from_client:
104-
headers.update({X_PRODUCT_NAME_HEADER: product_from_client})
103+
if x_product_name_header:
104+
headers.update({X_PRODUCT_NAME_HEADER: x_product_name_header})
105105

106106
mock_request = make_mocked_request(
107107
"GET",

0 commit comments

Comments
 (0)