Skip to content

Commit

Permalink
Add test for MetaFrame.synthesize()
Browse files Browse the repository at this point in the history
  • Loading branch information
qubixes committed Dec 20, 2024
1 parent e2fa411 commit c7bb508
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ def test_demo_datasets(tmp_path, dataset_name):
mf = MetaFrame.load_json(tmp_file)

df_syn = mf.synthesize(100)
df_syn_1 = mf.synthesize(100, seed=1234)
df_syn_2 = mf.synthesize(100, seed=1234)
for col in df_syn.columns:
assert all(df_syn_1[col].drop_nulls() == df_syn_2[col].drop_nulls())

for col, dtype in demo_class.schema.items():
assert dtype == df_syn[col].dtype
Expand Down

0 comments on commit c7bb508

Please sign in to comment.