1
0
Fork 0
mirror of synced 2024-12-22 06:01:07 -05:00

Update plugin tests for defaults feature

This commit is contained in:
Aleks Kamko 2016-02-26 22:05:39 -08:00
parent 74637f0ca0
commit 717176ad18
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ class Test(dotbot.Plugin):
def can_handle(self, directive): def can_handle(self, directive):
return directive == "test" return directive == "test"
def handle(self, directive, data): def handle(self, directive, data, defaults):
with open(os.path.expanduser("~/flag"), "w") as f: with open(os.path.expanduser("~/flag"), "w") as f:
f.write("it works") f.write("it works")
return True return True

View file

@ -10,7 +10,7 @@ class Test(dotbot.Plugin):
def can_handle(self, directive): def can_handle(self, directive):
return directive == "test" return directive == "test"
def handle(self, directive, data): def handle(self, directive, data, defaults):
with open(os.path.expanduser("~/flag"), "w") as f: with open(os.path.expanduser("~/flag"), "w") as f:
f.write("it works") f.write("it works")
return True return True