summaryrefslogtreecommitdiff
path: root/creole/tests/test_Makefile.py
diff options
context:
space:
mode:
Diffstat (limited to 'creole/tests/test_Makefile.py')
-rw-r--r--creole/tests/test_Makefile.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/creole/tests/test_Makefile.py b/creole/tests/test_Makefile.py
new file mode 100644
index 0000000..dbf129c
--- /dev/null
+++ b/creole/tests/test_Makefile.py
@@ -0,0 +1,29 @@
+
+"""
+ :copyleft: 2020 by python-creole team, see AUTHORS for more details.
+ :license: GNU GPL v3 or above, see LICENSE for more details.
+"""
+
+import unittest
+
+from creole.tests.utils.unittest_subprocess import SubprocessMixin
+
+
+class MakefileTestCase(unittest.TestCase, SubprocessMixin):
+
+ def test_help(self):
+ popen_args, retcode, stdout = self.subprocess(
+ popen_args=["make"],
+ )
+ assert "List all commands" in stdout
+ assert "tox" in stdout
+ assert "pytest" in stdout
+ assert retcode == 0
+
+ def test_check_poetry(self):
+ popen_args, retcode, stdout = self.subprocess(
+ popen_args=["make", "check-poetry"],
+ )
+ assert "Found Poetry version 1." in stdout
+ assert "ok" in stdout
+ assert retcode == 0