aboutsummaryrefslogtreecommitdiffstats
path: root/miss_htbt_service/misshtbtd.py
diff options
context:
space:
mode:
authorPrakashH <pbhandar@techmahindra.com>2019-03-12 14:23:26 +0000
committerPrakashH <pbhandar@techmahindra.com>2019-03-12 14:23:26 +0000
commit42f667aa9ff066f821a5a444fd496e5d163d99fe (patch)
tree7c9dc83b38d62301920f02ff8bc968fd9588a0d0 /miss_htbt_service/misshtbtd.py
parent28084d770c86b3a42cd55c7146dffd4a593f2a02 (diff)
Test coverage for heartbeat MS
Increased code coverage Issue-ID: DCAEGEN2-1260 Change-Id: Ide4c030d3228ac5594ac1ee7403ad6cfa102a64e Signed-off-by: PrakashH <pbhandar@techmahindra.com>
Diffstat (limited to 'miss_htbt_service/misshtbtd.py')
-rw-r--r--miss_htbt_service/misshtbtd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miss_htbt_service/misshtbtd.py b/miss_htbt_service/misshtbtd.py
index 36683dc..f1a8688 100644
--- a/miss_htbt_service/misshtbtd.py
+++ b/miss_htbt_service/misshtbtd.py
@@ -305,7 +305,7 @@ def fetch_json_file():
def create_update_db(update_db, jsfile, ip_address, port_num, user_name, password, db_name):
envPytest = os.getenv('pytest', "")
- if (envPytest != 'test'):
+ if (envPytest != 'test'): #pragma: no cover
if(update_db == 0):
create_database(update_db, jsfile, ip_address, port_num, user_name, password, db_name)
msg = "MSHBT: DB parameters -", ip_address, port_num, user_name, password, db_name