Skip to content

Commit 1e5b680

Browse files
author
Ryan P Kilby
committed
Add NotImplementedError to coverage exclusion
1 parent 86c1c76 commit 1e5b680

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,9 @@ known_first_party=rest_framework
2525
source = .
2626
include = rest_framework/*,tests/*
2727
branch = 1
28+
2829
[coverage:report]
2930
include = rest_framework/*,tests/*
31+
exclude_lines =
32+
pragma: no cover
33+
raise NotImplementedError

tests/test_viewsets.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,26 @@ class ActionViewSet(GenericViewSet):
3535
queryset = Action.objects.all()
3636

3737
def list(self, request, *args, **kwargs):
38-
raise NotImplementedError() # pragma: no cover
38+
raise NotImplementedError()
3939

4040
def retrieve(self, request, *args, **kwargs):
41-
raise NotImplementedError() # pragma: no cover
41+
raise NotImplementedError()
4242

4343
@action(detail=False)
4444
def list_action(self, request, *args, **kwargs):
45-
raise NotImplementedError() # pragma: no cover
45+
raise NotImplementedError()
4646

4747
@action(detail=False, url_name='list-custom')
4848
def custom_list_action(self, request, *args, **kwargs):
49-
raise NotImplementedError() # pragma: no cover
49+
raise NotImplementedError()
5050

5151
@action(detail=True)
5252
def detail_action(self, request, *args, **kwargs):
53-
raise NotImplementedError() # pragma: no cover
53+
raise NotImplementedError()
5454

5555
@action(detail=True, url_name='detail-custom')
5656
def custom_detail_action(self, request, *args, **kwargs):
57-
raise NotImplementedError() # pragma: no cover
57+
raise NotImplementedError()
5858

5959

6060
router = SimpleRouter()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy