mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 21:50:41 +00:00
add profile to all other variables
This commit is contained in:
@@ -29,7 +29,7 @@ class TestCompare(unittest.TestCase):
|
||||
def compare(self, opts, conf, tmp, nbdotfiles):
|
||||
dotfiles = conf.get_dotfiles(opts['profile'])
|
||||
self.assertTrue(len(dotfiles) == nbdotfiles)
|
||||
t = Templategen(opts['profile'], base=opts['dotpath'], debug=True)
|
||||
t = Templategen(base=opts['dotpath'], debug=True)
|
||||
inst = Installer(create=opts['create'], backup=opts['backup'],
|
||||
dry=opts['dry'], base=opts['dotpath'], debug=True)
|
||||
comp = Comparator()
|
||||
|
||||
@@ -17,6 +17,7 @@ from dotdrop.installer import Installer
|
||||
from dotdrop.action import Action
|
||||
from dotdrop.dotdrop import cmd_install
|
||||
from dotdrop.linktypes import LinkTypes
|
||||
from dotdrop.utils import header
|
||||
|
||||
|
||||
class TestInstall(unittest.TestCase):
|
||||
@@ -163,7 +164,7 @@ exec bspwm
|
||||
d9 = Dotfile(get_string(6), dst9, os.path.basename(f9), trans_r=tr)
|
||||
|
||||
# to test template
|
||||
f10, _ = create_random_file(tmp, content='{{@@ profile @@}}')
|
||||
f10, _ = create_random_file(tmp, content='{{@@ header() @@}}')
|
||||
dst10 = os.path.join(dst, get_string(6))
|
||||
d10 = Dotfile(get_string(6), dst10, os.path.basename(f10))
|
||||
|
||||
@@ -226,7 +227,7 @@ exec bspwm
|
||||
# test template has been remplaced
|
||||
self.assertTrue(os.path.exists(dst10))
|
||||
tempcontent = open(dst10, 'r').read().rstrip()
|
||||
self.assertTrue(tempcontent == profile)
|
||||
self.assertTrue(tempcontent == header())
|
||||
|
||||
def test_link_children(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user