Created
June 5, 2015 17:59
-
-
Save jamesrcounts/0ffb24fde079d1ce4efd to your computer and use it in GitHub Desktop.
Tortise Text Reporter for Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import call | |
from approvaltests.Reporter import Reporter | |
class TortoiseTextReporter(Reporter): | |
@staticmethod | |
def get_command(approved_path, received_path): | |
return ['C:\\Program Files\\TortoiseSVN\\bin\\tortoisemerge.exe', received_path, approved_path] | |
def report(self, approved_path, received_path): | |
command_array = self.get_command(approved_path, received_path) | |
call(command_array) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment