summaryrefslogtreecommitdiffstats
path: root/test/stubs/git.py
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-05-08 01:19:03 +0200
committerOliver Poignant <oliver@poignant.se>2016-05-08 01:19:03 +0200
commit6e6fd2e4f13cfb827ae1f5a0c3e83f14cc1fa15a (patch)
tree5a8d88d329413a0e9b8f786529c4ee2ce118fbe7 /test/stubs/git.py
parentae3c50f997427bc128ff303b4a3dbaea19c18fde (diff)
downloadGit-Auto-Deploy-6e6fd2e4f13cfb827ae1f5a0c3e83f14cc1fa15a.zip
Git-Auto-Deploy-6e6fd2e4f13cfb827ae1f5a0c3e83f14cc1fa15a.tar.gz
Git-Auto-Deploy-6e6fd2e4f13cfb827ae1f5a0c3e83f14cc1fa15a.tar.bz2
Automated testing of weebhook request handling
Diffstat (limited to 'test/stubs/git.py')
-rw-r--r--test/stubs/git.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/stubs/git.py b/test/stubs/git.py
new file mode 100644
index 0000000..d023a51
--- /dev/null
+++ b/test/stubs/git.py
@@ -0,0 +1,16 @@
+class GitWrapper(object):
+
+ @staticmethod
+ def pull(*args, **kwargs):
+ """Fake git pull"""
+ return 0
+
+ @staticmethod
+ def clone(*args, **kwargs):
+ """Fake git clone"""
+ return 0
+
+ @staticmethod
+ def deploy(*args, **kwargs):
+ """Fake deploy"""
+ return 0