Commit ed6a03b124cfe0b8d05164214600b288e63ae4e3
1 parent
3770b5e9
Remove .txt file extension from create_fake_doc()
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -20,7 +20,7 @@ def description_with_id(prefix, sentence): | @@ -20,7 +20,7 @@ def description_with_id(prefix, sentence): | ||
20 | 20 | ||
21 | def create_fake_doc(): | 21 | def create_fake_doc(): |
22 | content = fake.text() | 22 | content = fake.text() |
23 | - suffix = fake.random_element(('.txt', '.doc', '.docx', '.pdf')) | 23 | + suffix = fake.random_element(('.doc', '.docx', '.pdf')) |
24 | tf = NamedTemporaryFile(delete=False, suffix=suffix) | 24 | tf = NamedTemporaryFile(delete=False, suffix=suffix) |
25 | tf.write(content) | 25 | tf.write(content) |
26 | tf.close() | 26 | tf.close() |
Please
register
or
login
to post a comment