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

18 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-07-31 16:31 +0000

1from app.models import * 

2from app.models.term import Term 

3from app.models.user import User 

4 

5class CommunityEngagementRequest(baseModel): 

6 user = ForeignKeyField(User) 

7 term = ForeignKeyField(Term) 

8 experienceName = CharField() 

9 company = CharField() 

10 companyAddress = CharField() 

11 companyPhone = CharField() 

12 companyWebsite = CharField() 

13 supervisorPhone = CharField() 

14 supervisorEmail = CharField() 

15 totalHours = IntegerField() 

16 weeks = IntegerField() 

17 description = TextField() 

18 filename = CharField(null=True) 

19 status = CharField(constraints=[Check("status in ('Approved', 'Pending', 'Denied')")])