diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2023-01-09 15:05:56 +0000 |
---|---|---|
committer | Vijay Venkatesh Kumar <vv770d@att.com> | 2023-01-09 15:10:27 +0000 |
commit | be25ac706aebde77865996223e14658d36618248 (patch) | |
tree | 65659635030215f9d8f51c69b0ac2bd8e6ef2f83 /tests/test_htbt_get_cbs_config.py | |
parent | aefdb1d11b1f36750438487fe1da85911acca4c6 (diff) |
Fix black reported error in rls job2.6.0
Change-Id: I5b3b04214ca2a53a23df170bfbfd25c768dc8ac2
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-3321
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Diffstat (limited to 'tests/test_htbt_get_cbs_config.py')
-rw-r--r-- | tests/test_htbt_get_cbs_config.py | 9 |
1 files changed, 4 insertions, 5 deletions
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) - |