We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
skrub
1 parent 816cf32 commit 2506619Copy full SHA for 2506619
skore-hub-project/tests/conftest.py
@@ -1,4 +1,5 @@
1
from datetime import datetime, timezone
2
+from functools import partial
3
from unittest.mock import Mock
4
from urllib.parse import urljoin
5
@@ -155,7 +156,10 @@ def monkeypatch_skrub(monkeypatch):
155
156
157
https://github.com/skrub-data/skrub/blob/35f573ce586fe61ef2c72f4c0c4b188ebf2e664b/skrub/_reporting/_html.py#L153
158
"""
159
+ from skrub._dataframe import sample
160
+
161
monkeypatch.setattr("secrets.token_hex", lambda: "<token>")
162
+ monkeypatch.setattr("skrub._dataframe.sample", partial(sample, seed=42))
163
164
165
@fixture
0 commit comments