Showing
1 changed file
with
8 additions
and
0 deletions
@@ -6,6 +6,14 @@ from faker import Factory | @@ -6,6 +6,14 @@ from faker import Factory | ||
6 | fake = Factory.create('uk_UA') | 6 | fake = Factory.create('uk_UA') |
7 | fake_ru = Factory.create('ru') | 7 | fake_ru = Factory.create('ru') |
8 | fake_en = Factory.create() | 8 | fake_en = Factory.create() |
9 | +from tempfile import NamedTemporaryFile | ||
10 | + | ||
11 | +def create_fake_doc(): | ||
12 | + content = fake.text() | ||
13 | + tf = NamedTemporaryFile(delete=False) | ||
14 | + tf.write(content) | ||
15 | + tf.close() | ||
16 | + return tf.name | ||
9 | 17 | ||
10 | def test_tender_data(period_interval=2): | 18 | def test_tender_data(period_interval=2): |
11 | now = datetime.now() | 19 | now = datetime.now() |
Please
register
or
login
to post a comment