Commit 897cdb7d1fdf03c4b546ea9f9fba58158e5d207b
1 parent
1b63fad4
Add create_fake_sentence to initial_data.py
Showing
2 changed files
with
5 additions
and
0 deletions
... | ... | @@ -10,6 +10,10 @@ fake_ru = Factory.create('ru') |
10 | 10 | fake_en = Factory.create() |
11 | 11 | |
12 | 12 | |
13 | +def create_fake_sentence(): | |
14 | + return fake.sentence(nb_words=10, variable_nb_words=True) | |
15 | + | |
16 | + | |
13 | 17 | def create_fake_doc(): |
14 | 18 | content = fake.text() |
15 | 19 | suffix = fake.random_element(('.txt', '.doc', '.docx', '.pdf')) | ... | ... |
Please
register
or
login
to post a comment