Skip to content

Commit

Permalink
Merge pull request #1008 from A-Baji/mp-test
Browse files Browse the repository at this point in the history
Multiprocessing test
  • Loading branch information
guzman-raphael authored Mar 25, 2022
2 parents 8f14969 + c64d956 commit 413e2f9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## Release notes

### 0.13.4 -- TBA
### 0.13.4 -- March, 25 2022
* Add - Allow reading blobs produced by legacy 32-bit compiled mYm library for matlab. PR #995
* Bugfix - Add missing `jobs` argument for multiprocessing PR #997
* Add - Test for multiprocessing PR #1008
* Bugfix - Fix external store key name doesn't allow '-' (#1005) PR #1006

### 0.13.3 -- Feb 9, 2022
Expand Down
4 changes: 3 additions & 1 deletion docs-parts/intro/Releases_lang1.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
0.13.4 -- TBA
0.13.4 -- March 25, 2022
----------------------
* Add - Allow reading blobs produced by legacy 32-bit compiled mYm library for matlab. PR #995
* Bugfix - Add missing ``jobs`` argument for multiprocessing PR #997
* Add - Test for multiprocessing PR #1008
* Bugfix - Fix external store key name doesn't allow '-' (#1005) PR #1006

0.13.3 -- Feb 9, 2022
Expand Down
6 changes: 6 additions & 0 deletions tests/test_autopopulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ def test_allow_direct_insert(self):
key['experiment_date'] = '2018-10-30'
self.experiment.insert1(key, allow_direct_insert=True)

def test_multi_processing(self):
assert self.subject, 'root tables are empty'
assert not self.experiment, 'table already filled?'
self.experiment.populate(processes=2)
assert len(self.experiment) == len(self.subject)*self.experiment.fake_experiments_per_subject

@raises(DataJointError)
def test_allow_insert(self):
assert_true(self.subject, 'root tables are empty')
Expand Down

0 comments on commit 413e2f9

Please sign in to comment.