Skip to content

Commit 631ecb7

Browse files
committed
Minor update to auth token
1 parent ec3d260 commit 631ecb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_filters_jinja2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ def _build_client(
141141
default_public=True,
142142
)
143143
headers = (
144-
{"Authorization": f"Bearer {token_builder({})}"} if is_authenticated else {}
144+
{"Authorization": f"Bearer {token_builder({'sub': 'test-user'})}"}
145+
if is_authenticated
146+
else {}
145147
)
146148
return TestClient(app, headers=headers)
147149

0 commit comments

Comments
 (0)