Coverage for app/models/course.py: 100%

19 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-09-03 17:48 +0000

1from app.models import * 

2from app.models.term import Term 

3from app.models.courseStatus import CourseStatus 

4from app.models.user import User 

5 

6class Course(baseModel): 

7 courseName = CharField() 

8 courseAbbreviation = CharField() 

9 sectionDesignation = CharField() 

10 courseCredit = FloatField() 

11 term = ForeignKeyField(Term, null = True) 

12 status = ForeignKeyField(CourseStatus) 

13 createdBy = ForeignKeyField(User) 

14 serviceLearningDesignatedSections = TextField() 

15 previouslyApprovedDescription = TextField() 

16 isPermanentlyDesignated = BooleanField(default=False) 

17 isAllSectionsServiceLearning = BooleanField(default=False) 

18 isRegularlyOccurring = BooleanField(default=False) 

19 isPreviouslyApproved = BooleanField(default=False) 

20 hasSlcComponent = BooleanField(default=False)