mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
Remove test_helpers.DummyStream
This commit is contained in:
@@ -191,7 +191,6 @@ class DummyTornadoRequest(object):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
# type: () -> None
|
# type: () -> None
|
||||||
self.connection = DummyObject()
|
self.connection = DummyObject()
|
||||||
self.connection.stream = DummyStream() # type: ignore # monkey-patching here
|
|
||||||
|
|
||||||
class DummyHandler(object):
|
class DummyHandler(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -202,11 +201,6 @@ class DummyHandler(object):
|
|||||||
class DummySession(object):
|
class DummySession(object):
|
||||||
session_key = "0"
|
session_key = "0"
|
||||||
|
|
||||||
class DummyStream(object):
|
|
||||||
def closed(self):
|
|
||||||
# type: () -> bool
|
|
||||||
return False
|
|
||||||
|
|
||||||
class POSTRequestMock(object):
|
class POSTRequestMock(object):
|
||||||
method = "POST"
|
method = "POST"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user