1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 06:30:50 +00:00

refactoring

This commit is contained in:
deadc0de6
2018-10-08 18:13:13 +02:00
parent c0cb08c226
commit f6db3d3866
5 changed files with 86 additions and 78 deletions

View File

@@ -10,8 +10,8 @@ import os
import yaml
from dotdrop.config import Cfg
from dotdrop.dotdrop import importer
from dotdrop.dotdrop import update
from dotdrop.dotdrop import cmd_update
from dotdrop.dotdrop import cmd_importer
from dotdrop.dotfile import Dotfile
from tests.helpers import *
@@ -68,7 +68,7 @@ class TestUpdate(unittest.TestCase):
dfiles = [d1, dir1]
# import the files
importer(opts, conf, dfiles)
cmd_importer(opts, conf, dfiles)
conf, opts = load_config(confpath, profile)
# edit the files
@@ -86,7 +86,7 @@ class TestUpdate(unittest.TestCase):
# update it
opts['safe'] = False
opts['debug'] = True
update(opts, conf, [d1, dir1])
cmd_update(opts, conf, [d1, dir1])
# test content
newcontent = open(d1, 'r').read()