]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/tests/test_feature_toggles.py
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / tests / test_feature_toggles.py
index 031d0ef8394448fe178b6c7c06b0096a797f6b58..571b8c286c859893c2b058e894fa4016dd39fe8f 100644 (file)
@@ -2,13 +2,14 @@
 from __future__ import absolute_import
 
 import unittest
+
 try:
     from mock import Mock, patch
 except ImportError:
     from unittest.mock import Mock, patch
 
-from . import KVStoreMockMixin
-from ..plugins.feature_toggles import FeatureToggles, Features
+from ..plugins.feature_toggles import Actions, Features, FeatureToggles
+from . import KVStoreMockMixin  # pylint: disable=no-name-in-module
 
 
 class SettingsTest(unittest.TestCase, KVStoreMockMixin):
@@ -55,7 +56,7 @@ class SettingsTest(unittest.TestCase, KVStoreMockMixin):
         import cherrypy
 
         self.plugin.register_commands()['handle_command'](
-            self.mgr, 'disable', ['cephfs'])
+            self.mgr, Actions.DISABLE, [Features.CEPHFS])
 
         with patch.object(self.plugin, '_get_feature_from_request',
                           return_value=Features.CEPHFS):