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

21 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-06-21 18:28 +0000

1from app.models import * 

2from app.models.term import Term 

3from app.models.courseStatus import CourseStatus 

4from app.models.note import Note 

5from app.models.user import User 

6from peewee import CharField, FloatField, BooleanField, ForeignKeyField, TextField 

7 

8class Course(baseModel): 

9 courseName = CharField() 

10 courseAbbreviation = CharField() 

11 sectionDesignation = CharField() 

12 courseCredit = FloatField() 

13 term = ForeignKeyField(Term, null = True) 

14 status = ForeignKeyField(CourseStatus) 

15 createdBy = ForeignKeyField(User) 

16 serviceLearningDesignatedSections = TextField() 

17 previouslyApprovedDescription = TextField() 

18 isPermanentlyDesignated = BooleanField(default=False) 

19 isAllSectionsServiceLearning = BooleanField(default=False) 

20 isRegularlyOccurring = BooleanField(default=False) 

21 isPreviouslyApproved = BooleanField(default=False) 

22 hasSlcComponent = BooleanField(default=False)