Skip to content

Commit 58c3b3e

Browse files
committed
add test for multi processing
1 parent 931ba8f commit 58c3b3e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_autopopulate.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ def test_allow_direct_insert(self):
5757
key['experiment_date'] = '2018-10-30'
5858
self.experiment.insert1(key, allow_direct_insert=True)
5959

60+
def test_multi_processing(self):
61+
assert self.subject, 'root tables are empty'
62+
assert not self.experiment, 'table already filled?'
63+
self.experiment.populate(processes=2)
64+
assert len(self.experiment) == len(self.subject)*self.experiment.fake_experiments_per_subject
65+
6066
@raises(DataJointError)
6167
def test_allow_insert(self):
6268
assert_true(self.subject, 'root tables are empty')

0 commit comments

Comments
 (0)