Ejemplo n.º 1
0
    def setUp(self):
        _BaseSetting.setUp(self)

        self.pt = Fraction(name="Fill-in-the-Blank")
        self.pt.set_fill_in_the_blank()
        self.pt.stem = {
            "statement":
            "Express the following fractions in simplest form: {{numerator}}/{{denominator}}"
        }

        self.pt.keys = {
            "variables": [
                dict(name="numerator", value=[4, 3, 12, 8],
                     type='whole range'),
                dict(name="denominator",
                     value=[16, 6, 18, 15],
                     type='whole range')
            ],
            "answer": ["1/4", "1/2", "2/3", "8/15"]
        }

        self.pt.save()

        self.pt.editors.add(self.e1)

        self.pt.save()
Ejemplo n.º 2
0
    def setUp(self):
        _BaseSetting.setUp(self)

        self.answer = ExamAnswers()
        self.answer.exam = self.exam1
        self.answer.student = self.s4
        self.answer.answers = {1: 10, 2: 6, 3: 11}
        self.answer.save()
Ejemplo n.º 3
0
    def setUp(self):
        _BaseSetting.setUp(self)

        self.exam = ExamProblems.objects.create(teacher=self.t3)

        self.exam.problems.add(ProblemInstance.objects.get(pk=1))
        self.exam.problems.add(ProblemInstance.objects.get(pk=2))
        self.exam.problems.add(ProblemInstance.objects.get(pk=3))
Ejemplo n.º 4
0
    def setUp(self):
        _BaseSetting.setUp(self)

        self.answer = ExamAnswers()
        self.answer.exam = self.exam2
        self.answer.student = self.s4
        self.answer.answers = {
            5: "3/4",
        }
        self.answer.save()
Ejemplo n.º 5
0
 def setUp(self):
     _BaseSetting.setUp(self)
Ejemplo n.º 6
0
    def setUp(self):
        _BaseSetting.setUp(self)

        self.setUpClassroom()
        self.setUpClassAssignment()