Skip to content

Commit dc98e6e

Browse files
committed
test(flask): cover default data collection for login migration
1 parent edcc03c commit dc98e6e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎tests/integrations/flask/test_flask.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,13 @@ def test_flask_login_partially_configured(
235235
assert event.get("user", {}).get("id") is None
236236

237237

238-
@pytest.mark.parametrize("init_kwargs, expect_user", DATA_COLLECTION_USER_INFO_CASES)
238+
@pytest.mark.parametrize(
239+
"init_kwargs, expect_user",
240+
[
241+
pytest.param({"data_collection": {}}, True, id="data_collection_default"),
242+
*DATA_COLLECTION_USER_INFO_CASES,
243+
],
244+
)
239245
@pytest.mark.parametrize("user_id", [None, "42", 3])
240246
def test_flask_login_configured(
241247
init_kwargs,

0 commit comments

Comments
 (0)