From 63e220b6a634d0688317bc8262887afb2457d200 Mon Sep 17 00:00:00 2001 From: Oliver Ruebel Date: Sun, 1 Oct 2023 04:00:02 -0700 Subject: [PATCH] Fix #127 update paralle write test to set table ids --- tests/unit/test_parallel_write.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_parallel_write.py b/tests/unit/test_parallel_write.py index 61aae7ab..3bd3e08a 100644 --- a/tests/unit/test_parallel_write.py +++ b/tests/unit/test_parallel_write.py @@ -189,7 +189,12 @@ def test_simple_tqdm(tmpdir): display_progress=True, ) ) - dynamic_table = DynamicTable(name="TestTable", description="", columns=[column]) + dynamic_table = DynamicTable( + name="TestTable", + description="", + columns=[column], + id=list(range(3)) # must provide id's when all columns are iterators + ) io.write(container=dynamic_table, number_of_jobs=number_of_jobs) assert expected_desc in tqdm_out.getvalue() @@ -222,7 +227,10 @@ def test_compound_tqdm(tmpdir): ) ) dynamic_table = DynamicTable( - name="TestTable", description="", columns=[pickleable_column, not_pickleable_column] + name="TestTable", + description="", + columns=[pickleable_column, not_pickleable_column], + id=list(range(3)) # must provide id's when all columns are iterators ) io.write(container=dynamic_table, number_of_jobs=number_of_jobs)