Skip to content

Commit f505335

Browse files
add random seed to faker in tests.schema_simple to make tests deterministic
1 parent 24ba679 commit f505335

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
nose
22
nose-cov
33
coveralls
4-
Faker
4+
faker

tests/schema_simple.py

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

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

18+
faker.Faker.seed(0) # make deterministic
19+
1820

1921
@schema
2022
class IJ(dj.Lookup):

0 commit comments

Comments
 (0)