]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: increase API test coverage in API controllers
authorAashish Sharma <aashishsharma@localhost.localdomain>
Mon, 6 Jul 2020 13:57:38 +0000 (19:27 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Mon, 6 Jul 2020 13:57:38 +0000 (19:27 +0530)
Added test cases for the missing endpoints

Fixes: https://tracker.ceph.com/issues/45901
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
src/pybind/mgr/dashboard/__init__.py

index fa2c7ff419e1c7bb16abc014b807236c3a316dea..30013bb777102eabc78ab3c194a1496461c00310 100644 (file)
@@ -9,7 +9,7 @@ import os
 import cherrypy
 
 if 'COVERAGE_ENABLED' in os.environ:
-    import coverage
+    import coverage  # pylint: disable=import-error
     __cov = coverage.Coverage(config_file="{}/.coveragerc".format(os.path.dirname(__file__)),
                               data_suffix=True)
     __cov.start()