Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.br_media_type = MediaType.objects.create(_id=ObjectId('5be1978071e89a0c878c6055'), name=[
- Locale(locale='ru', text='Хлебушки'),
- Locale(locale='en', text='Breads'),
- ], media_prefix='br')
- self.user = User.objects.create(username='test', email='test@test.test', first_name='first name',
- last_name='last name',
- password=str(random.getrandbits(64)))
- UserDetails.objects.create(user=self.user, media_type=self.br_media_type,
- icon_url='image/url.png')
- java = Language.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c97f"), name="Java", icon_id="icon_id")
- python = Language.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c85f"), name="Python", icon_id="icon_id")
- java_question_topic1 = QuestionTopic.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c972"), language=java,
- free=True, title=[
- Locale(locale='ru', text='Java Тема вопроссов 1'),
- Locale(locale='en', text='Java Test topic 1'),
- ])
- Question.objects.create(_id=ObjectId("5c82917fcc9cf75fc278c972"), question_topic=java_question_topic1,
- free=True, question=[
- Locale(locale='ru', text='Java Вопрос 1 темы вопроссов 1'),
- Locale(locale='en', text='Java Test topic 1 Question 1'),
- ], answer=[
- Locale(locale='ru', text='Java Ответ 1 темы вопроссов 1'),
- Locale(locale='en', text='Java Test topic 1 Answer 1'),
- ])
- Question.objects.create(_id=ObjectId("5c82927fcc9cf75fc278c972"), question_topic=java_question_topic1,
- free=True, question=[
- Locale(locale='ru', text='Java Вопрос 2 темы вопроссов 1'),
- Locale(locale='en', text='Java Test topic 1 Question 2'),
- ], answer=[
- Locale(locale='ru', text='Java Ответ 2 темы вопроссов 1'),
- Locale(locale='en', text='Java Test topic 1 Answer 2'),
- ])
- Question.objects.create(_id=ObjectId("5c81917fcc9cf75fc278c972"), question_topic=java_question_topic1,
- free=False, question=[
- Locale(locale='ru', text='Java Вопрос 3 темы вопроссов 1'),
- Locale(locale='en', text='Java Test topic 1 Question 3'),
- ], answer=[
- Locale(locale='ru', text='Java Ответ 3 темы вопроссов 3'),
- Locale(locale='en', text='Java Test topic 3 Answer 3'),
- ])
- java_question_topic2 = QuestionTopic.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c923"), language=java,
- free=False, title=[
- Locale(locale='ru', text='Java Тема вопроссов 2'),
- Locale(locale='en', text='Java Test topic 2'),
- ])
- Question.objects.create(_id=ObjectId("5c82912fcc9cf75fc278c972"), question_topic=java_question_topic2,
- free=True, question=[
- Locale(locale='ru', text='Java Вопрос 1 темы вопроссов 2'),
- Locale(locale='en', text='Java Test topic 2 Question 1'),
- ], answer=[
- Locale(locale='ru', text='Java Ответ 1 темы вопроссов 2'),
- Locale(locale='en', text='Java Test topic 2 Answer 1'),
- ])
- Question.objects.create(_id=ObjectId("5c82927f1c9cf75fc278c972"), question_topic=java_question_topic2,
- free=True, question=[
- Locale(locale='ru', text='Java Вопрос 2 темы вопроссов 2'),
- Locale(locale='en', text='Java Test topic 2 Question 2'),
- ], answer=[
- Locale(locale='ru', text='Java Ответ 2 темы вопроссов 2'),
- Locale(locale='en', text='Java Test topic 2 Answer 2'),
- ])
- Question.objects.create(_id=ObjectId("5181917fcc9cf75fc278c972"), question_topic=java_question_topic2,
- free=False, question=[
- Locale(locale='ru', text='Java Вопрос 3 темы вопроссов 2'),
- Locale(locale='en', text='Java Test topic 2 Question 3'),
- ], answer=[
- Locale(locale='ru', text='Java Ответ 3 темы вопроссов 2'),
- Locale(locale='en', text='Java Test topic 2 Answer 3'),
- ])
- python_question_topic1 = QuestionTopic.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c912"), language=python,
- free=True, title=[
- Locale(locale='ru', text='Python Тема вопроссов 1'),
- Locale(locale='en', text='Python Test topic 1'),
- ])
- Question.objects.create(_id=ObjectId("5c22917fcc9cf75fc278c972"), question_topic=python_question_topic1,
- free=True, question=[
- Locale(locale='ru', text='Python Вопрос 1 темы вопроссов 1'),
- Locale(locale='en', text='Python Test topic 1 Question 1'),
- ], answer=[
- Locale(locale='ru', text='Python Ответ 1 темы вопроссов 1'),
- Locale(locale='en', text='Python Test topic 1 Answer 1'),
- ])
- Question.objects.create(_id=ObjectId("5c52927fcc9cf75fc278c972"), question_topic=python_question_topic1,
- free=True, question=[
- Locale(locale='ru', text='Python Вопрос 2 темы вопроссов 1'),
- Locale(locale='en', text='Python Test topic 1 Question 2'),
- ], answer=[
- Locale(locale='ru', text='Python Ответ 2 темы вопроссов 1'),
- Locale(locale='en', text='Python Test topic 1 Answer 2'),
- ])
- Question.objects.create(_id=ObjectId("5c91917fcc9cf75fc278c972"), question_topic=python_question_topic1,
- free=False, question=[
- Locale(locale='ru', text='Python Вопрос 3 темы вопроссов 1'),
- Locale(locale='en', text='Python Test topic 1 Question 3'),
- ], answer=[
- Locale(locale='ru', text='Python Ответ 3 темы вопроссов 3'),
- Locale(locale='en', text='Python Test topic 3 Answer 3'),
- ])
- python_question_topic2 = QuestionTopic.objects.create(_id=ObjectId("5c86917fcc9cf75fc2783923"), language=python,
- free=False, title=[
- Locale(locale='ru', text='Python Тема вопроссов 2'),
- Locale(locale='en', text='Python Test topic 2'),
- ])
- Question.objects.create(_id=ObjectId("5c88912fcc9cf75fc278c972"), question_topic=python_question_topic2,
- free=True, question=[
- Locale(locale='ru', text='Python Вопрос 1 темы вопроссов 2'),
- Locale(locale='en', text='Python Test topic 2 Question 1'),
- ], answer=[
- Locale(locale='ru', text='Python Ответ 1 темы вопроссов 2'),
- Locale(locale='en', text='Python Test topic 2 Answer 1'),
- ])
- Question.objects.create(_id=ObjectId("5c82927f9c9cf75fc278c972"), question_topic=python_question_topic2,
- free=True, question=[
- Locale(locale='ru', text='Python Вопрос 2 темы вопроссов 2'),
- Locale(locale='en', text='Python Test topic 2 Question 2'),
- ], answer=[
- Locale(locale='ru', text='Python Ответ 2 темы вопроссов 2'),
- Locale(locale='en', text='Python Test topic 2 Answer 2'),
- ])
- Question.objects.create(_id=ObjectId("5181217fcc9cf75fc278c972"), question_topic=python_question_topic2,
- free=False, question=[
- Locale(locale='ru', text='Python Вопрос 3 темы вопроссов 2'),
- Locale(locale='en', text='Python Test topic 2 Question 3'),
- ], answer=[
- Locale(locale='ru', text='Python Ответ 3 темы вопроссов 2'),
- Locale(locale='en', text='Python Test topic 2 Answer 3'),
- ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement