summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Gallo <aamsgallo@gmail.com>2018-09-16 14:16:54 +0200
committerAlejandro Gallo <aamsgallo@gmail.com>2018-09-16 14:16:54 +0200
commit8b74c9ca5b5d431dc4f3fa424b17b35a49ca9764 (patch)
treeaba9e648da5bb953b658a638b5c778a8decaa75e
parent1034fbfb2951adf55da6d05545601c28a8259e35 (diff)
Add test for git
-rw-r--r--tests/commands/test_git.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/commands/test_git.py b/tests/commands/test_git.py
new file mode 100644
index 00000000..adbd98b2
--- /dev/null
+++ b/tests/commands/test_git.py
@@ -0,0 +1,21 @@
+import papis.bibtex
+import unittest
+import tests
+import papis.config
+from papis.commands.git import cli
+import os
+
+
+class TestCli(tests.cli.TestCli):
+
+ cli = cli
+
+ def test_main(self):
+ self.do_test_cli_function_exists()
+ self.do_test_help()
+
+ def test_simple(self):
+ result = self.invoke([
+ 'init'
+ ])
+ self.assertTrue(result.exit_code == 0)