コード例 #1
0
 def test_get_option__option_doesnt_exist__default_returned(self, ext_dir):
     manifest_dict = {
         'options': {}
     }
     manifest = ExtensionManifest('test_extension', manifest_dict, ext_dir)
     manifest.get_option('query_debounce', 0.4) == 0.4
コード例 #2
0
 def test_get_option__option_doesnt_exist__default_returned(self, ext_dir):
     manifest_dict = {
         'options': {}
     }
     manifest = ExtensionManifest('test_extension', manifest_dict, ext_dir)
     assert manifest.get_option('query_debounce', 0.4) == 0.4
コード例 #3
0
 def test_get_option__option_exists__value_returned(self, ext_dir):
     manifest_dict = {
         'options': {'query_debounce': 0.5}
     }
     manifest = ExtensionManifest('test_extension', manifest_dict, ext_dir)
     manifest.get_option('query_debounce') == 0.5
コード例 #4
0
 def test_get_option__option_exists__value_returned(self, ext_dir):
     manifest_dict = {
         'options': {'query_debounce': 0.5}
     }
     manifest = ExtensionManifest('test_extension', manifest_dict, ext_dir)
     assert manifest.get_option('query_debounce') == 0.5