Skip to content

Commit

Permalink
Tests: Removed "test" from a server utility method
Browse files Browse the repository at this point in the history
  • Loading branch information
tcalmant committed Mar 7, 2019
1 parent 3414510 commit 31e6361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/async_support/test_server_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

# Tests
from tests.test_compatibility import TestCompatibility
from tests.utilities import register_test_functions
from tests.utilities import register_server_functions

# ------------------------------------------------------------------------------
# Handler classes
Expand Down Expand Up @@ -137,7 +137,7 @@ async def pause():

# Prepare the handler with common functions, plus the asynchronous one
handler = AsyncJsonRpcProtocolHandler()
register_test_functions(handler)
register_server_functions(handler)
handler.register_function(pause)

# Associate the handler to the protocol wrapper
Expand Down
4 changes: 2 additions & 2 deletions tests/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def fail():
# Server utility class


def register_test_functions(server):
def register_server_functions(server):
"""
Registers all test functions to the server
Expand Down Expand Up @@ -119,7 +119,7 @@ def start(self, addr, port):
self._server = SimpleJSONRPCServer((addr, port), logRequests=False)

# Register test methods
register_test_functions(self._server)
register_server_functions(self._server)

# Serve in a thread
self._thread = threading.Thread(target=self._server.serve_forever)
Expand Down

0 comments on commit 31e6361

Please sign in to comment.