summaryrefslogtreecommitdiff
path: root/creole/tests/test_Makefile.py
blob: 412be65a239d25f2721e39b14ae0fb4a02d796e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
    :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