Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
s/Simple//g. Closes #117.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kit Cambridge committed Sep 10, 2015
1 parent f3a39cf commit 9bb62ed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions autopush/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from autopush.ssl import AutopushSSLContextFactory
from autopush.utils import str2bool
from autopush.websocket import (
SimplePushServerProtocol,
PushServerProtocol,
RouterHandler,
NotificationHandler,
periodic_reporter,
Expand Down Expand Up @@ -304,7 +304,7 @@ def connection_main(sysargs=None):
debug=args.debug,
debugCodePaths=args.debug,
)
factory.protocol = SimplePushServerProtocol
factory.protocol = PushServerProtocol
factory.protocol.ap_settings = settings
factory.setProtocolOptions(
webStatus=False,
Expand Down
4 changes: 2 additions & 2 deletions autopush/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def setUp(self):
)
from autopush.settings import AutopushSettings
from autopush.websocket import (
SimplePushServerProtocol,
PushServerProtocol,
RouterHandler,
NotificationHandler,
DefaultResource,
Expand All @@ -273,7 +273,7 @@ def setUp(self):
# Websocket server
self._ws_url = "ws://localhost:9010/"
factory = WebSocketServerFactory(self._ws_url, debug=False)
factory.protocol = SimplePushServerProtocol
factory.protocol = PushServerProtocol
factory.protocol.ap_settings = settings
factory.setProtocolOptions(
webStatus=False,
Expand Down
4 changes: 2 additions & 2 deletions autopush/tests/test_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from autopush.settings import AutopushSettings
from autopush.websocket import (
PushState,
SimplePushServerProtocol,
PushServerProtocol,
RouterHandler,
Notification,
NotificationHandler,
Expand All @@ -43,7 +43,7 @@ def tearDown():
class WebsocketTestCase(unittest.TestCase):
def setUp(self):
twisted.internet.base.DelayedCall.debug = True
self.proto = SimplePushServerProtocol()
self.proto = PushServerProtocol()

settings = AutopushSettings(
hostname="localhost",
Expand Down
2 changes: 1 addition & 1 deletion autopush/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def stopProducing(self):
self._should_stop = True


class SimplePushServerProtocol(WebSocketServerProtocol):
class PushServerProtocol(WebSocketServerProtocol):
"""Main Websocket Connection Protocol"""

# Testing purposes
Expand Down
2 changes: 1 addition & 1 deletion docs/api/websocket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Websocket Protocol
++++++++++++++++++

.. autoclass:: SimplePushServerProtocol
.. autoclass:: PushServerProtocol
:members:
:special-members: __init__
:private-members:
Expand Down

0 comments on commit 9bb62ed

Please sign in to comment.