diff options
author | 2022-11-07 22:07:32 +0100 | |
---|---|---|
committer | 2022-11-07 22:07:32 +0100 | |
commit | ae180bb6a3028f9d0ec05ebfa940265004eb76cd (patch) | |
tree | 93e128d9153c12477ff145852939555e624aeadf /pydis_site | |
parent | refactor nomination validation flow (diff) |
remove useless coverage related commented
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/apps/api/viewsets/bot/nomination.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pydis_site/apps/api/viewsets/bot/nomination.py b/pydis_site/apps/api/viewsets/bot/nomination.py index 49c40e7c..78687e0e 100644 --- a/pydis_site/apps/api/viewsets/bot/nomination.py +++ b/pydis_site/apps/api/viewsets/bot/nomination.py @@ -286,7 +286,6 @@ class NominationViewSet(CreateModelMixin, RetrieveModelMixin, ListModelMixin, Ge {'active': ['This field can only be used to end a nomination']} ) - # This is actually covered, but for some reason coverage don't think so. elif not instance.active and 'reviewed' in request.data: raise ValidationError( {'reviewed': ['This field cannot be set if the nomination is inactive.']} |