From be25ac706aebde77865996223e14658d36618248 Mon Sep 17 00:00:00 2001 From: Vijay Venkatesh Kumar Date: Mon, 9 Jan 2023 15:05:56 +0000 Subject: Fix black reported error in rls job Change-Id: I5b3b04214ca2a53a23df170bfbfd25c768dc8ac2 Signed-off-by: Vijay Venkatesh Kumar Issue-ID: DCAEGEN2-3321 Signed-off-by: Vijay Venkatesh Kumar --- tests/test_htbt_get_cbs_config.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/test_htbt_get_cbs_config.py') diff --git a/tests/test_htbt_get_cbs_config.py b/tests/test_htbt_get_cbs_config.py index 99e347c..2a2b641 100644 --- a/tests/test_htbt_get_cbs_config.py +++ b/tests/test_htbt_get_cbs_config.py @@ -105,7 +105,7 @@ class test_get_cbs_config(unittest.TestCase): ) # create copy of snmphtbt.json for pytest - #pytest_json_config = "/tmp/opt/app/miss_htbt_service/etc/config.json" + # pytest_json_config = "/tmp/opt/app/miss_htbt_service/etc/config.json" pytest_json_config = "test-config.json" with open(pytest_json_config, "w") as outfile: outfile.write(pytest_json_data) @@ -130,19 +130,18 @@ class test_get_cbs_config(unittest.TestCase): print("result: %s" % result) self.assertEqual(result, True) - @patch('misshtbtd.create_update_hb_common') - @patch('misshtbtd.read_hb_common') + @patch("misshtbtd.create_update_hb_common") + @patch("misshtbtd.read_hb_common") def test_poll_cbs(self, mock1, mock2): """ TBD """ status = True current_time = round(time.time()) - mock1.return_value = ('1', 'RUNNING', 'AA', current_time) + mock1.return_value = ("1", "RUNNING", "AA", current_time) # configjsonfile = (os.path.dirname(__file__))+"/test-config.json" configjsonfile = "test-config.json" os.environ.update(CBS_HTBT_JSON=configjsonfile) os.environ["pytest"] = "test" cp.poll_cbs(1) self.assertEqual(status, True) - -- cgit 1.2.3-korg