Skip to content

Commit 7415a08

Browse files
authored
update test, CHANGELOG
1 parent ed3fd03 commit 7415a08

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Added - GitHub Actions workflow to manually release docs
66
- Changed - Update `datajoint/nginx` to `v0.2.6`
77
- Changed - Migrate docs from `https://docs.datajoint.org/python` to `https://datajoint.com/docs/core/datajoint-python`
8+
- Fixed - `Autopopulate.populate` excludes `reserved` jobs in addition to `ignore` and `error` jobs
89

910
### 0.14.1 -- Jun 02, 2023
1011
- Fixed - Fix altering a part table that uses the "master" keyword - PR [#991](https://github.com/datajoint/datajoint-python/pull/991)

tests_old/test_autopopulate.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,19 @@ def test_populate_exclude_error_and_ignore_jobs(self):
5858
assert_true(self.subject, "root tables are empty")
5959
assert_false(self.experiment, "table already filled?")
6060

61-
keys = self.experiment.key_source.fetch("KEY", limit=2)
61+
keys = self.experiment.key_source.fetch("KEY", limit=3)
6262
for idx, key in enumerate(keys):
6363
if idx == 0:
6464
schema.schema.jobs.ignore(self.experiment.table_name, key)
65-
else:
65+
elif:
6666
schema.schema.jobs.error(self.experiment.table_name, key, "")
67+
else:
68+
schema.schema.jobs.reserve(self.experiment.table_name, key)
6769

6870
self.experiment.populate(reserve_jobs=True)
6971
assert_equal(
7072
len(self.experiment.key_source & self.experiment),
71-
len(self.experiment.key_source) - 2,
73+
len(self.experiment.key_source) - 3,
7274
)
7375

7476
def test_allow_direct_insert(self):

0 commit comments

Comments
 (0)