Skip to content

Commit 7b560f3

Browse files
committed
fixes tests
1 parent 3c4bea8 commit 7b560f3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

services/web/server/tests/unit/with_dbs/03/test_login_auth_app.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async def test_check_endpoint_in_auth_app(client: TestClient, user: UserInfoDict
157157

158158
def test_docker_compose_dev_vendors_forwardauth_configuration(
159159
services_docker_compose_dev_vendors_file: Path,
160-
app_environment_for_wb_authz_service_dict: EnvVarsDict,
160+
env_devel_dict: EnvVarsDict,
161161
):
162162
"""Test that manual service forwardauth.address points to correct WB_AUTH_WEBSERVER_HOST and port."""
163163

@@ -208,13 +208,9 @@ def test_docker_compose_dev_vendors_forwardauth_configuration(
208208
address_part == expected_pattern
209209
), f"forwardauth.address should be '{expected_pattern}', got '{address_part}'"
210210

211-
# Verify that WB_AUTH_WEBSERVER_HOST and WB_AUTH_WEBSERVER_PORT are configured in the test environment
212-
wb_auth_host = app_environment_for_wb_authz_service_dict.get(
213-
"WB_AUTH_WEBSERVER_HOST"
214-
)
215-
wb_auth_port = app_environment_for_wb_authz_service_dict.get(
216-
"WB_AUTH_WEBSERVER_PORT"
217-
)
211+
# Verify that WB_AUTH_WEBSERVER_HOST and WB_AUTH_WEBSERVER_PORT are configured in the .env-devel file!
212+
wb_auth_host = env_devel_dict.get("WB_AUTH_WEBSERVER_HOST")
213+
wb_auth_port = env_devel_dict.get("WB_AUTH_WEBSERVER_PORT")
218214

219215
assert (
220216
wb_auth_host is not None

0 commit comments

Comments
 (0)