mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 05:04:17 +00:00
fix tests
This commit is contained in:
@@ -58,7 +58,7 @@ class CfgYaml:
|
||||
key_dotfile_actions = 'actions'
|
||||
key_dotfile_link_children = 'link_children'
|
||||
key_dotfile_noempty = 'ignoreempty'
|
||||
key_dotfile_notemplate = 'notemplate'
|
||||
key_dotfile_template = 'template'
|
||||
|
||||
# profile
|
||||
key_profile_dotfiles = 'dotfiles'
|
||||
@@ -84,7 +84,7 @@ class CfgYaml:
|
||||
key_settings_noempty = Settings.key_ignoreempty
|
||||
key_settings_minversion = Settings.key_minversion
|
||||
key_imp_link = Settings.key_link_on_import
|
||||
key_settings_notemplate = Settings.key_template_dotfile_default
|
||||
key_settings_template = Settings.key_template_dotfile_default
|
||||
|
||||
# link values
|
||||
lnk_nolink = LinkTypes.NOLINK.name.lower()
|
||||
@@ -599,10 +599,10 @@ class CfgYaml:
|
||||
if self.key_dotfile_noempty not in v:
|
||||
val = self.settings.get(self.key_settings_noempty, False)
|
||||
v[self.key_dotfile_noempty] = val
|
||||
# apply notemplate if undefined
|
||||
if self.key_dotfile_notemplate not in v:
|
||||
val = self.settings.get(self.key_settings_notemplate, False)
|
||||
v[self.key_dotfile_notemplate] = val
|
||||
# apply template if undefined
|
||||
if self.key_dotfile_template not in v:
|
||||
val = self.settings.get(self.key_settings_template, True)
|
||||
v[self.key_dotfile_template] = val
|
||||
|
||||
return new
|
||||
|
||||
|
||||
Reference in New Issue
Block a user