• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

EQAR / eqar_backend / d8212a49-c37c-4ae7-9420-8ee0f5693ca5

03 Apr 2026 01:13PM UTC coverage: 85.802% (-1.0%) from 86.818%
d8212a49-c37c-4ae7-9420-8ee0f5693ca5

Pull #584

circleci

JoshBone
Update test_submission_api_v1_closure.py
Pull Request #584: Closing submissonAPI v1 endpoints.

39 of 40 new or added lines in 5 files covered. (97.5%)

13 existing lines in 4 files now uncovered.

9627 of 11220 relevant lines covered (85.8%)

0.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.44
/submissionapi/validations/validate_programmes.py
1
from rest_framework import serializers
1✔
2

3
def validate_programmes(data):
1✔
4
    errors = {}
1✔
5

6
    qf_ehea_level = data.get('qf_ehea_level')
1✔
7
    degree_outcome = data.get('degree_outcome')
1✔
8
    workload_ects = data.get('workload_ects')
1✔
9
    assessment_certification = data.get('assessment_certification')
1✔
10

11
    # Additional programme data fields are required if degree outcome is "no full degree"
12
    if degree_outcome:
1✔
13
        if degree_outcome.id == 2:
1✔
14
            if not workload_ects:
1✔
15
                errors["workload_ects"] = "ECTS credits are required, when degree_outcome field is " \
1✔
16
                                          "'2 / no full degree'"
17
            if not assessment_certification:
1✔
18
                errors["assessment_certification"] = "Assessment information is required, " \
1✔
19
                                                     "when degree_outcome field is '2 / no full degree'."
20
            if not qf_ehea_level:
1✔
UNCOV
21
                errors["qf_ehea_level"] = "QF-EHEA Level information is required, " \
×
22
                                          "when degree_outcome field is '2 / no full degree'."
23

24
    if len(errors) > 0:
1✔
25
        raise serializers.ValidationError(errors)
1✔
26

27
    return data
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc