Skip to content

Commit

Permalink
PIKA-532 Removed unnecessary params
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Kruglikov committed Mar 26, 2015
1 parent 6052ecf commit 8c08f93
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/unit/blocking_connection_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class BlockingConnectionTests(unittest.TestCase):
@patch.object(blocking_connection.BlockingConnection, 'connect',
spec_set=blocking_connection.BlockingConnection.connect)
def test_handle_timeout_when_closing_exceeds_threshold(self, connect_mock):
params = pika.ConnectionParameters(socket_timeout=2.0)
connection = BlockingConnectionMockTemplate(params)
connection = BlockingConnectionMockTemplate()

connection_patch = patch.multiple(
connection,
Expand All @@ -45,8 +44,7 @@ def test_handle_timeout_when_closing_exceeds_threshold(self, connect_mock):
@patch.object(blocking_connection.BlockingConnection, 'connect',
spec_set=blocking_connection.BlockingConnection.connect)
def test_handle_timeout_when_closing_below_threshold(self, connect_mock):
params = pika.ConnectionParameters(socket_timeout=2.0)
connection = BlockingConnectionMockTemplate(params)
connection = BlockingConnectionMockTemplate()

connection_patch = patch.multiple(
connection,
Expand All @@ -63,8 +61,7 @@ def test_handle_timeout_when_closing_below_threshold(self, connect_mock):
spec_set=blocking_connection.BlockingConnection.connect)
def test_handle_timeout_when_not_closing_exceeds_threshold(self,
connect_mock):
params = pika.ConnectionParameters(socket_timeout=2.0)
connection = BlockingConnectionMockTemplate(params)
connection = BlockingConnectionMockTemplate()

connection_patch = patch.multiple(
connection,
Expand All @@ -81,8 +78,7 @@ def test_handle_timeout_when_not_closing_exceeds_threshold(self,
spec_set=blocking_connection.BlockingConnection.connect)
def test_handle_timeout_when_not_closing_below_threshold(self,
connect_mock):
params = pika.ConnectionParameters(socket_timeout=2.0)
connection = BlockingConnectionMockTemplate(params)
connection = BlockingConnectionMockTemplate()

connection_patch = patch.multiple(
connection,
Expand Down

0 comments on commit 8c08f93

Please sign in to comment.