Skip to content

Commit cc61aa8

Browse files
jomuelrakanalh
authored andcommitted
Exclude some units from coverage measurement
every class that directly or indirectly has an attribute of type RaidenService
1 parent ff80aba commit cc61aa8

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

raiden/api/python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def transfer_tasks_view(
162162

163163
class RaidenAPI:
164164
# pylint: disable=too-many-public-methods
165+
# pragma: no unittest
165166

166167
def __init__(self, raiden):
167168
self.raiden = raiden

raiden/api/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def restapi_setup_type_converters(flask_app, names_to_converters):
277277
flask_app.url_map.converters[key] = value
278278

279279

280-
class APIServer(Runnable):
280+
class APIServer(Runnable): # pragma: no unittest
281281
"""
282282
Runs the API-server that routes the endpoint to the resources.
283283
The API is wrapped in multiple layers, and the Server should be invoked this way::
@@ -475,7 +475,7 @@ def unhandled_exception(self, exception: Exception):
475475
return api_error([str(exception)], HTTPStatus.INTERNAL_SERVER_ERROR)
476476

477477

478-
class RestAPI:
478+
class RestAPI: # pragma: no unittest
479479
"""
480480
This wraps around the actual RaidenAPI in api/python.
481481
It will provide the additional, neccessary RESTful logic and

raiden/connection_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def log_open_channels(raiden, registry_address, token_address, funds):
5656
)
5757

5858

59-
class ConnectionManager:
59+
class ConnectionManager: # pragma: no unittest
6060
"""The ConnectionManager provides a high level abstraction for connecting to a
6161
Token network.
6262

raiden/utils/echo_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
TRANSFER_MEMORY = 4096
2323

2424

25-
class EchoNode:
25+
class EchoNode: # pragma: no unittest
2626
def __init__(self, api, token_address):
2727
assert isinstance(api, RaidenAPI)
2828
self.ready = Event()

raiden/utils/timeout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from raiden.waiting import wait_for_block
66

77

8-
def _timeout_task(
8+
def _timeout_task( # pragma: no unittest
99
throw: Callable,
1010
exception_to_throw: Exception,
1111
raiden: RaidenService,
@@ -16,7 +16,7 @@ def _timeout_task(
1616
throw(exception_to_throw)
1717

1818

19-
class BlockTimeout:
19+
class BlockTimeout: # pragma: no unittest
2020
def __init__(
2121
self,
2222
exception_to_throw,

0 commit comments

Comments
 (0)