Update plugin tests for defaults feature
This commit is contained in:
parent
74637f0ca0
commit
717176ad18
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue