Commits

Anonymous committed 196ec71 Draft

updated for keyword args

  • Participants
  • Parent commits ecd9400

Comments (0)

Files changed (1)

File test/redis_test.py

 
 @pytest.fixture
 def inbound(config, queue, redis_mock):
-    return redis_endpoint.InBound(config, queue, redis_mock)
+    return redis_endpoint.InBound(
+        config=config,
+        gevent_queue=queue,
+        redis_server=redis_mock)
 
 
 @pytest.fixture
 def outbound(config, redis_mock):
     with patch.object(redis_endpoint.redis, "Redis", redis_mock):
-        return redis_endpoint.OutBound(config)
+        return redis_endpoint.OutBound(config=config)
 
 
 def test_plugin_id():
     def f():
         raise redis.ConnectionError("test error")
     redis_mock.echo.side_effect = f
-    end_point = redis_endpoint.InBound(config, queue, redis_mock)
+    end_point = redis_endpoint.InBound(
+        config=config,
+        gevent_queue=queue,
+        redis_server=redis_mock)
     with pytest.raises(PluginException):
         end_point.check()