Skip to content

Commit 973d68a

Browse files
Add missing field to MockChannel to prevent warnings while testing
1 parent ab9857b commit 973d68a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

betterproto/tests/mocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class MockChannel(Channel):
88
def __init__(self, responses=None) -> None:
99
self.responses = responses if responses else []
1010
self.requests = []
11+
self._loop = None
1112

1213
def request(self, route, cardinality, request, response_type, **kwargs):
1314
self.requests.append(

0 commit comments

Comments
 (0)