Commit 46bf56ac authored by Robin Obůrka's avatar Robin Obůrka

tests: Remove redundant implementation of mocked methods

parent 9a93ade1
...@@ -15,16 +15,7 @@ def test_context_data_passed(in_out_args_mock, recv_multipart_mock, send_multipa ...@@ -15,16 +15,7 @@ def test_context_data_passed(in_out_args_mock, recv_multipart_mock, send_multipa
recv_multipart_mock.side_effect = side_effect() recv_multipart_mock.side_effect = side_effect()
class TestBox(sn.SNPipelineBox): class TestBox(sn.SNPipelineBox):
def setup(self): pass
return {
"foo": "bar",
}
def teardown(self):
pass
def process(self, msg_type, payload):
return msg_type, payload
tb = TestBox("test") tb = TestBox("test")
tb.setup = mock_setup = Mock(return_value={"foo": "bar"}) tb.setup = mock_setup = Mock(return_value={"foo": "bar"})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment