SubmissionTestResult   A
last analyzed

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 21
rs 10
1
from django.db import models
2
3
class SubmissionTestResult(models.Model):
4
    '''
5
        An executor test result for a given submission file.
6
    '''
7
8
    VALIDITY_TEST = 'v'
9
    FULL_TEST = 'f'
10
    JOB_TYPES = (
11
        (VALIDITY_TEST, 'Validation test'),
12
        (FULL_TEST, 'Full test')
13
    )
14
    submission_file = models.ForeignKey('SubmissionFile', related_name="test_results")
15
    machine = models.ForeignKey('TestMachine', related_name="test_results")
16
    created = models.DateTimeField(auto_now_add=True, editable=False)
17
    result = models.TextField(null=True, blank=True)
18
    result_tutor = models.TextField(null=True, blank=True)
19
    kind = models.CharField(max_length=2, choices=JOB_TYPES)
20
    perf_data = models.TextField(null=True, blank=True)
21
22
    class Meta:
23
        app_label = 'opensubmit'
24