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
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
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
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