From 255c3a65c3ffebc8673657c8bf58cb62d565a207 Mon Sep 17 00:00:00 2001 From: Robert Habermann <mail@rhab.de> Date: Mon, 18 Apr 2016 01:41:01 +0200 Subject: [PATCH] pep8 --- tests/test_pyotrs.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_pyotrs.py b/tests/test_pyotrs.py index b951c70..ce90e62 100644 --- a/tests/test_pyotrs.py +++ b/tests/test_pyotrs.py @@ -202,11 +202,11 @@ class PyOTRSTests(unittest.TestCase): 'status': 200, 'content_type': 'application/json' }) - ### Define values for function call + # Define values for function call username = "wrong_username" password = "wrong_password" - ### Define data that should be called later: + # Define data that should be called later: url = "https://fqdn/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket/1" payload = { 'SessionID': "fakesessionid", @@ -214,17 +214,17 @@ class PyOTRSTests(unittest.TestCase): 'DynamicFields': 1 } - ### create object + # create object obj = Client(self.base_url, self.webservice_name, username, password) obj.session_restore_or_set_up_new() - ### enable Mock + # enable Mock obj._ticket_get_json = MagicMock() - ### call function + # call function obj.ticket_get_by_id(1) - ### test whether predefined data and call (hooked by MagicMock) match + # test whether predefined data and call (hooked by MagicMock) match obj._ticket_get_json.assert_called_with(url, payload) """ Test Mock: Validate that the right call to requests is made """ @@ -237,7 +237,7 @@ class PyOTRSTests(unittest.TestCase): 'status': 200, 'content_type': 'application/json' }) - ### expected content of request: + # expected content of request: mock_url = "https://fqdn/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket/1" mock_payload = { 'SessionID': "fakesessionid", -- GitLab