Ejemplo n.º 1
0
 def get(self):
     from app.migrations.question_migration import import_questions
     import_questions()
     self.response.out.write('Migration done. <button onclick="history.back()">Go back</button>')
Ejemplo n.º 2
0
    def test_number_range_21_to_40_returns_20_questions(self):
        import_questions()

        quest_range = Question.get_questions_by_number_range(21, 40)
        self.assertEqual(20, len(quest_range))
Ejemplo n.º 3
0
    def setUp(self):
        super(QuestionModelTests, self).setUp()

        import_questions()