Exemple #1
0
    def setUp(self):
        test_util.create_user()
        self.c = Client()
        response = self.c.login(username='******', password='******')

        self.get_data={
            'student_id' : STUDENT_ID,
            'problem_id' : LOCATION,
            }
Exemple #2
0
    def setUp(self):
        test_util.create_user()
        self.c = Client()
        response = self.c.login(username='******', password='******')

        self.get_data={
            'student_id' : STUDENT_ID,
            'problem_id' : LOCATION,
            }
    def setUp(self):
        test_util.create_user()

        self.client = Client()
        self.client.login(username='******', password='******')

        self.min_to_calibrate = settings.PEER_GRADER_MINIMUM_TO_CALIBRATE + 1
        self.sub_ids = create_calibration_essays(self.min_to_calibrate, [0] * self.min_to_calibrate, True)

        self.submission_id = self.sub_ids[0]
        self.grader_id = Grader.objects.filter(submission_id=self.submission_id, grader_type="IN")[0].id
    def setUp(self):
        test_util.create_user()

        self.client = Client()
        self.client.login(username='******', password='******')

        self.min_to_calibrate = settings.PEER_GRADER_MINIMUM_TO_CALIBRATE + 1
        self.sub_ids = create_calibration_essays(self.min_to_calibrate,
                                                 [0] * self.min_to_calibrate,
                                                 True)

        self.submission_id = self.sub_ids[0]
        self.grader_id = Grader.objects.filter(
            submission_id=self.submission_id, grader_type="IN")[0].id
Exemple #5
0
    def generic_setup(self, rubric_xml, scores, text):
        test_util.create_user()

        self.c = Client()
        self.c.login(username='******', password='******')

        #Shuffle to mix up the classes, set seed to make it repeatable
        random.seed(1)
        shuffled_scores = []
        shuffled_text = []
        indices = [i for i in xrange(0,len(scores))]
        random.shuffle(indices)
        for i in indices:
            shuffled_scores.append(scores[i])
            shuffled_text.append(text[i])

        text = shuffled_text[:TRAINING_LIMIT]
        scores = shuffled_scores[:TRAINING_LIMIT]
        self.scores = scores
        self.text = text
        self.rubric_xml = rubric_xml
Exemple #6
0
    def generic_setup(self, rubric_xml, scores, text):
        test_util.create_user()

        self.c = Client()
        self.c.login(username='******', password='******')

        #Shuffle to mix up the classes, set seed to make it repeatable
        random.seed(1)
        shuffled_scores = []
        shuffled_text = []
        indices = [i for i in xrange(0, len(scores))]
        random.shuffle(indices)
        for i in indices:
            shuffled_scores.append(scores[i])
            shuffled_text.append(text[i])

        text = shuffled_text[:TRAINING_LIMIT]
        scores = shuffled_scores[:TRAINING_LIMIT]
        self.scores = scores
        self.text = text
        self.rubric_xml = rubric_xml
Exemple #7
0
    def setUp(self):
        test_util.create_user()

        self.c = Client()
        response = self.c.login(username='******', password='******')
Exemple #8
0
    def setUp(self):
        test_util.create_user()

        self.c = Client()
        response = self.c.login(username='******', password='******')
Exemple #9
0
    def setUp(self):
        test_util.create_user()

        self.c = Client()
Exemple #10
0
    def setUp(self):
        test_util.create_user()

        self.c = Client()
Exemple #11
0
 def setUp(self):
     test_util.create_user()