Skip to content

Commit 58a294b

Browse files
set RNG seed for faker in tests
1 parent 07ab459 commit 58a294b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/schema_simple.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
schema = dj.Schema(PREFIX + '_relational', locals(), connection=dj.conn(**CONN_INFO))
1717

18-
faker.Faker.seed(0) # make deterministic
19-
2018

2119
@schema
2220
class IJ(dj.Lookup):
@@ -195,6 +193,7 @@ class Website(dj.Part):
195193

196194
def populate_random(self, n=10):
197195
fake = faker.Faker()
196+
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)