Skip to content

Commit 718f99d

Browse files
committed
Call preflight to raise error
1 parent d77b92a commit 718f99d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

flowmachine/tests/test_random.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,10 @@ def test_system_rows_fail_with_inheritance():
234234
Test whether the system row method fails if the subscriber queries for random rows on a parent table.
235235
"""
236236
with pytest.raises(ValueError):
237-
df = Table(name="events.calls", columns=["msisdn"]).random_sample(
238-
size=8, sampling_method="system_rows"
237+
df = (
238+
Table(name="events.calls", columns=["msisdn"])
239+
.random_sample(size=8, sampling_method="system_rows")
240+
.preflight()
239241
)
240242

241243

0 commit comments

Comments
 (0)