Skip to content

Commit 5a14e91

Browse files
improve test for explicit list autopopulate
1 parent f39447a commit 5a14e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_autopopulate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ def test_populate_with_success_count(subject, experiment, trial):
4949
assert len(trial.key_source & trial) == success_count
5050

5151

52-
def test_populate_explicit_key_list(subject, experiment, trial):
52+
def test_populate_key_list(subject, experiment, trial):
5353
# test simple populate
5454
assert subject, "root tables are empty"
5555
assert not experiment, "table already filled?"
5656
keys = experiment.key_source.fetch("KEY", order_by="KEY")
5757
n = 3
58+
assert len(keys) > n
5859
keys = keys[:n]
59-
assert len(keys) == n
6060
ret = experiment.populate(keys=keys)
6161
assert n == ret["success_count"]
6262

0 commit comments

Comments
 (0)