From ae298a95ac16cd0be567c88c8a784837abd84c23 Mon Sep 17 00:00:00 2001 From: Robert Latta <robert.latta@geant.org> Date: Fri, 4 Jan 2019 08:04:07 +0000 Subject: [PATCH] Excluded methods from coverage checks that just execute SQL and return result --- inventory_provider/opsdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inventory_provider/opsdb.py b/inventory_provider/opsdb.py index c400b432..5d3541a3 100644 --- a/inventory_provider/opsdb.py +++ b/inventory_provider/opsdb.py @@ -244,14 +244,14 @@ def get_circuits(db): return r -def get_circuit_hierarchy(db): +def get_circuit_hierarchy(db): # pragma: no cover with cursor(db) as crs: crs.execute(circuit_hierarchy_query) r = _convert_to_dict(crs) return r -def get_equipment_location_data(db): +def get_equipment_location_data(db): # pragma: no cover with cursor(db) as crs: crs.execute(equipment_location_query) r = _convert_to_dict(crs) -- GitLab