Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.74 KB | None | 0 0
  1. self.br_media_type = MediaType.objects.create(_id=ObjectId('5be1978071e89a0c878c6055'), name=[
  2. Locale(locale='ru', text='Хлебушки'),
  3. Locale(locale='en', text='Breads'),
  4. ], media_prefix='br')
  5.  
  6. self.user = User.objects.create(username='test', email='test@test.test', first_name='first name',
  7. last_name='last name',
  8. password=str(random.getrandbits(64)))
  9. UserDetails.objects.create(user=self.user, media_type=self.br_media_type,
  10. icon_url='image/url.png')
  11. java = Language.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c97f"), name="Java", icon_id="icon_id")
  12. python = Language.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c85f"), name="Python", icon_id="icon_id")
  13. java_question_topic1 = QuestionTopic.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c972"), language=java,
  14. free=True, title=[
  15. Locale(locale='ru', text='Java Тема вопроссов 1'),
  16. Locale(locale='en', text='Java Test topic 1'),
  17. ])
  18. Question.objects.create(_id=ObjectId("5c82917fcc9cf75fc278c972"), question_topic=java_question_topic1,
  19. free=True, question=[
  20. Locale(locale='ru', text='Java Вопрос 1 темы вопроссов 1'),
  21. Locale(locale='en', text='Java Test topic 1 Question 1'),
  22. ], answer=[
  23. Locale(locale='ru', text='Java Ответ 1 темы вопроссов 1'),
  24. Locale(locale='en', text='Java Test topic 1 Answer 1'),
  25. ])
  26. Question.objects.create(_id=ObjectId("5c82927fcc9cf75fc278c972"), question_topic=java_question_topic1,
  27. free=True, question=[
  28. Locale(locale='ru', text='Java Вопрос 2 темы вопроссов 1'),
  29. Locale(locale='en', text='Java Test topic 1 Question 2'),
  30. ], answer=[
  31. Locale(locale='ru', text='Java Ответ 2 темы вопроссов 1'),
  32. Locale(locale='en', text='Java Test topic 1 Answer 2'),
  33. ])
  34. Question.objects.create(_id=ObjectId("5c81917fcc9cf75fc278c972"), question_topic=java_question_topic1,
  35. free=False, question=[
  36. Locale(locale='ru', text='Java Вопрос 3 темы вопроссов 1'),
  37. Locale(locale='en', text='Java Test topic 1 Question 3'),
  38. ], answer=[
  39. Locale(locale='ru', text='Java Ответ 3 темы вопроссов 3'),
  40. Locale(locale='en', text='Java Test topic 3 Answer 3'),
  41. ])
  42.  
  43. java_question_topic2 = QuestionTopic.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c923"), language=java,
  44. free=False, title=[
  45. Locale(locale='ru', text='Java Тема вопроссов 2'),
  46. Locale(locale='en', text='Java Test topic 2'),
  47. ])
  48.  
  49. Question.objects.create(_id=ObjectId("5c82912fcc9cf75fc278c972"), question_topic=java_question_topic2,
  50. free=True, question=[
  51. Locale(locale='ru', text='Java Вопрос 1 темы вопроссов 2'),
  52. Locale(locale='en', text='Java Test topic 2 Question 1'),
  53. ], answer=[
  54. Locale(locale='ru', text='Java Ответ 1 темы вопроссов 2'),
  55. Locale(locale='en', text='Java Test topic 2 Answer 1'),
  56. ])
  57. Question.objects.create(_id=ObjectId("5c82927f1c9cf75fc278c972"), question_topic=java_question_topic2,
  58. free=True, question=[
  59. Locale(locale='ru', text='Java Вопрос 2 темы вопроссов 2'),
  60. Locale(locale='en', text='Java Test topic 2 Question 2'),
  61. ], answer=[
  62. Locale(locale='ru', text='Java Ответ 2 темы вопроссов 2'),
  63. Locale(locale='en', text='Java Test topic 2 Answer 2'),
  64. ])
  65. Question.objects.create(_id=ObjectId("5181917fcc9cf75fc278c972"), question_topic=java_question_topic2,
  66. free=False, question=[
  67. Locale(locale='ru', text='Java Вопрос 3 темы вопроссов 2'),
  68. Locale(locale='en', text='Java Test topic 2 Question 3'),
  69. ], answer=[
  70. Locale(locale='ru', text='Java Ответ 3 темы вопроссов 2'),
  71. Locale(locale='en', text='Java Test topic 2 Answer 3'),
  72. ])
  73.  
  74. python_question_topic1 = QuestionTopic.objects.create(_id=ObjectId("5c86917fcc9cf75fc278c912"), language=python,
  75. free=True, title=[
  76. Locale(locale='ru', text='Python Тема вопроссов 1'),
  77. Locale(locale='en', text='Python Test topic 1'),
  78. ])
  79.  
  80. Question.objects.create(_id=ObjectId("5c22917fcc9cf75fc278c972"), question_topic=python_question_topic1,
  81. free=True, question=[
  82. Locale(locale='ru', text='Python Вопрос 1 темы вопроссов 1'),
  83. Locale(locale='en', text='Python Test topic 1 Question 1'),
  84. ], answer=[
  85. Locale(locale='ru', text='Python Ответ 1 темы вопроссов 1'),
  86. Locale(locale='en', text='Python Test topic 1 Answer 1'),
  87. ])
  88. Question.objects.create(_id=ObjectId("5c52927fcc9cf75fc278c972"), question_topic=python_question_topic1,
  89. free=True, question=[
  90. Locale(locale='ru', text='Python Вопрос 2 темы вопроссов 1'),
  91. Locale(locale='en', text='Python Test topic 1 Question 2'),
  92. ], answer=[
  93. Locale(locale='ru', text='Python Ответ 2 темы вопроссов 1'),
  94. Locale(locale='en', text='Python Test topic 1 Answer 2'),
  95. ])
  96. Question.objects.create(_id=ObjectId("5c91917fcc9cf75fc278c972"), question_topic=python_question_topic1,
  97. free=False, question=[
  98. Locale(locale='ru', text='Python Вопрос 3 темы вопроссов 1'),
  99. Locale(locale='en', text='Python Test topic 1 Question 3'),
  100. ], answer=[
  101. Locale(locale='ru', text='Python Ответ 3 темы вопроссов 3'),
  102. Locale(locale='en', text='Python Test topic 3 Answer 3'),
  103. ])
  104. python_question_topic2 = QuestionTopic.objects.create(_id=ObjectId("5c86917fcc9cf75fc2783923"), language=python,
  105. free=False, title=[
  106. Locale(locale='ru', text='Python Тема вопроссов 2'),
  107. Locale(locale='en', text='Python Test topic 2'),
  108. ])
  109.  
  110. Question.objects.create(_id=ObjectId("5c88912fcc9cf75fc278c972"), question_topic=python_question_topic2,
  111. free=True, question=[
  112. Locale(locale='ru', text='Python Вопрос 1 темы вопроссов 2'),
  113. Locale(locale='en', text='Python Test topic 2 Question 1'),
  114. ], answer=[
  115. Locale(locale='ru', text='Python Ответ 1 темы вопроссов 2'),
  116. Locale(locale='en', text='Python Test topic 2 Answer 1'),
  117. ])
  118. Question.objects.create(_id=ObjectId("5c82927f9c9cf75fc278c972"), question_topic=python_question_topic2,
  119. free=True, question=[
  120. Locale(locale='ru', text='Python Вопрос 2 темы вопроссов 2'),
  121. Locale(locale='en', text='Python Test topic 2 Question 2'),
  122. ], answer=[
  123. Locale(locale='ru', text='Python Ответ 2 темы вопроссов 2'),
  124. Locale(locale='en', text='Python Test topic 2 Answer 2'),
  125. ])
  126. Question.objects.create(_id=ObjectId("5181217fcc9cf75fc278c972"), question_topic=python_question_topic2,
  127. free=False, question=[
  128. Locale(locale='ru', text='Python Вопрос 3 темы вопроссов 2'),
  129. Locale(locale='en', text='Python Test topic 2 Question 3'),
  130. ], answer=[
  131. Locale(locale='ru', text='Python Ответ 3 темы вопроссов 2'),
  132. Locale(locale='en', text='Python Test topic 2 Answer 3'),
  133. ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement