From 64f7d9b83e30528a6188bd422f653aa241d2f583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 1 Apr 2020 02:23:38 +0200 Subject: [PATCH] test them consumers, boy --- test.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test.py b/test.py index 9e14434..8e053af 100644 --- a/test.py +++ b/test.py @@ -58,7 +58,7 @@ def test_send_message(mocker): def test_discoveravailableconsumers(httpserver): httpserver.expect_oneshot_request( - uri="/consumer", + uri="/consumers", method='GET', data="").respond_with_json( ["10.69.42.1", "10.10.10.10", "10.20.30.40"]) @@ -74,7 +74,7 @@ def test_discoveravailableconsumers(httpserver): def test_isconsumeravailable(httpserver): httpserver.expect_oneshot_request( - uri="/consumer", + uri="/consumers", method='GET', data="").respond_with_json( ["10.69.42.1", "10.10.10.10", "10.20.30.40"]) @@ -102,7 +102,7 @@ def test_isconsumeravailable(httpserver): def test_checkconsumer(httpserver): httpserver.expect_oneshot_request( - uri="/consumer", + uri="/consumers", method='GET', data="").respond_with_json( ["10.69.42.1", "10.10.10.10", "10.20.30.40"]) @@ -138,7 +138,7 @@ def test_setcurrentconsumer(): def test_learnconsumerlist(httpserver): httpserver.expect_request( - uri="/consumer", + uri="/consumers", method='GET', data="").respond_with_json( ["10.69.42.1", "10.10.10.10", "10.20.30.40"]) @@ -166,7 +166,7 @@ def test_getcurrentconsumer(mocker): def test_checkcurrentconsumer(httpserver): httpserver.expect_oneshot_request( - uri="/consumer", + uri="/consumers", method='GET', data="").respond_with_json( ["10.69.42.1", "10.10.10.10", "10.20.30.40"]) @@ -184,7 +184,7 @@ def test_checkcurrentconsumer(httpserver): def test_updateconsumer(httpserver): httpserver.expect_oneshot_request( - uri="/consumer", + uri="/consumers", method='GET', data="").respond_with_json( ["10.69.42.1", "10.10.10.10", "10.20.30.40"]) @@ -203,7 +203,7 @@ def test_updateconsumer(httpserver): def test_updateconsumerlist(httpserver): httpserver.expect_oneshot_request( - uri="/consumer", + uri="/consumers", method='GET', data="").respond_with_json( ["10.69.42.1", "10.10.10.10", "10.20.30.40"])