Commit 897cdb7d1fdf03c4b546ea9f9fba58158e5d207b

Authored by mykhaly
1 parent 1b63fad4

Add create_fake_sentence to initial_data.py

@@ -10,6 +10,10 @@ fake_ru = Factory.create('ru') @@ -10,6 +10,10 @@ fake_ru = Factory.create('ru')
10 fake_en = Factory.create() 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 def create_fake_doc(): 17 def create_fake_doc():
14 content = fake.text() 18 content = fake.text()
15 suffix = fake.random_element(('.txt', '.doc', '.docx', '.pdf')) 19 suffix = fake.random_element(('.txt', '.doc', '.docx', '.pdf'))
@@ -16,6 +16,7 @@ from robot.output.loggerhelper import Message @@ -16,6 +16,7 @@ from robot.output.loggerhelper import Message
16 from .initial_data import ( 16 from .initial_data import (
17 auction_bid, 17 auction_bid,
18 create_fake_doc, 18 create_fake_doc,
  19 + create_fake_sentence,
19 test_additional_items_data, 20 test_additional_items_data,
20 test_award_data, 21 test_award_data,
21 test_bid_data, 22 test_bid_data,
Please register or login to post a comment