예제 #1
0
 def test_get_option__option_doesnt_exist__default_returned(self):
     manifest = ExtensionManifest({"options": {}})
     assert 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):
     manifest = ExtensionManifest({"options": {"query_debounce": 0.5}})
     assert 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