Skip to content

Commit 8d8aeed

Browse files
committed
formatted
1 parent b16cb63 commit 8d8aeed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/models/ranking/test_candidate_ranking.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,7 @@ def test_raises_warning_on_context(self, model: PopularModel, dataset: Dataset)
299299
)
300300
two_stage_model.fit(dataset)
301301
context = pd.DataFrame({Columns.User: [10], Columns.Datetime: ["2025-11-30"]})
302-
with pytest.warns(
303-
UserWarning,
304-
match="This model does not support context. It will be ignored."
305-
):
302+
with pytest.warns(UserWarning, match="This model does not support context. It will be ignored."):
306303
two_stage_model.recommend([10], dataset, k=3, filter_viewed=True, context=context)
307304

308305

0 commit comments

Comments
 (0)