diff --git a/tests/test_lint.py b/tests/test_lint.py new file mode 100644 index 0000000..86a87c6 --- /dev/null +++ b/tests/test_lint.py @@ -0,0 +1,15 @@ +import shutil +import subprocess +from pathlib import Path + +import django_ynh + + +BASE_PATH = Path(django_ynh.__file__).parent.parent + + +def test_lint(): + assert Path(BASE_PATH, 'Makefile').is_file() + make_bin = shutil.which('make') + assert make_bin is not None + subprocess.check_call([make_bin, 'lint'], cwd=BASE_PATH)