Skip to content

Commit b28e331

Browse files
remove duplicate line in test
1 parent 741f451 commit b28e331

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

datajoint/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def insert(self, rows, replace=False, skip_duplicates=False, ignore_extra_fields
285285
:param skip_duplicates: If True, silently skip duplicate inserts.
286286
:param ignore_extra_fields: If False, fields that are not in the heading raise error.
287287
:param allow_direct_insert: applies only in auto-populated tables.
288-
If False (default), insert are allowed only from inside the make callback.
288+
If False (default), insert are allowed only from inside the make callback.
289289
Example::
290290
>>> relation.insert([
291291
>>> dict(subject_id=7, species="mouse", date_of_birth="2014-09-01"),

tests/schema_simple.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,8 @@ class Website(dj.Part):
192192
"""
193193

194194
def populate_random(self, n=10):
195-
faker.Faker.seed(0)
195+
faker.Faker.seed(0) # make test deterministic
196196
fake = faker.Faker()
197-
faker.Faker.seed(0) # make tests deterministic
198197
for _ in range(n):
199198
profile = fake.profile()
200199
with self.connection.transaction:

0 commit comments

Comments
 (0)