Remove redis_db from test arguments
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
215dbdbbf3
commit
f0822580f1
15
test.py
15
test.py
@ -180,12 +180,11 @@ def test_setcurrentconsumer():
|
||||
assert comm.currenctconsumer == "10.69.42.1"
|
||||
|
||||
|
||||
def test_learnconsumerlist(httpserver, redis_db):
|
||||
def test_learnconsumerlist(httpserver):
|
||||
"""
|
||||
Tests :func:`consumerlocator.ConsumerLocator.learnconsumerlist`
|
||||
|
||||
:param httpserver: simple HTTP server
|
||||
:param redis_db: mock redis
|
||||
:return: None
|
||||
"""
|
||||
httpserver.expect_request(
|
||||
@ -206,12 +205,11 @@ def test_learnconsumerlist(httpserver, redis_db):
|
||||
assert ret is None
|
||||
|
||||
|
||||
def test_getcurrentconsumer(mocker, redis_db):
|
||||
def test_getcurrentconsumer(mocker):
|
||||
"""
|
||||
Tests :func:`consumerlocator.ConsumerLocator.getcurrentconsumer`
|
||||
|
||||
:param mocker: patches the :class:`communicator.Communicator`.
|
||||
:param redis_db: mock redis
|
||||
:return: None
|
||||
"""
|
||||
mocker.patch('communicator.Communicator')
|
||||
@ -224,12 +222,11 @@ def test_getcurrentconsumer(mocker, redis_db):
|
||||
assert locator.getcurrentconsumer() == consumerlocator.KNOWNCONSUMER
|
||||
|
||||
|
||||
def test_checkcurrentconsumer(httpserver, redis_db):
|
||||
def test_checkcurrentconsumer(httpserver):
|
||||
"""
|
||||
Tests :func:`consumerlocator.ConsumerLocator.checkcurrentconsumer`
|
||||
|
||||
:param httpserver: simple HTTP server
|
||||
:param redis_db: mock redis
|
||||
:return: None
|
||||
"""
|
||||
httpserver.expect_oneshot_request(
|
||||
@ -250,12 +247,11 @@ def test_checkcurrentconsumer(httpserver, redis_db):
|
||||
assert ret == True
|
||||
|
||||
|
||||
def test_updateconsumer(httpserver, redis_db):
|
||||
def test_updateconsumer(httpserver):
|
||||
"""
|
||||
Tests :func:`consumerlocator.ConsumerLocator.updateconsumer`
|
||||
|
||||
:param httpserver: simple HTTP server
|
||||
:param redis_db: mock redis
|
||||
:return: None
|
||||
"""
|
||||
httpserver.expect_oneshot_request(
|
||||
@ -277,12 +273,11 @@ def test_updateconsumer(httpserver, redis_db):
|
||||
assert ret == f"127.0.0.1:{port}"
|
||||
|
||||
|
||||
def test_updateconsumerlist(httpserver, redis_db):
|
||||
def test_updateconsumerlist(httpserver):
|
||||
"""
|
||||
Tests :func:`consumerlocator.ConsumerLocator.updateconsumerlist`
|
||||
|
||||
:param httpserver: simple HTTP server
|
||||
:param redis_db: mock redis
|
||||
:return: None
|
||||
"""
|
||||
httpserver.expect_oneshot_request(
|
||||
|
Reference in New Issue
Block a user