mirror of
https://github.com/YunoHost-Apps/django_example_ynh.git
synced 2024-09-03 18:26:21 +02:00
call "make lint" as unittest
This commit is contained in:
parent
03a87bf63f
commit
2380e79b81
1 changed files with 15 additions and 0 deletions
15
tests/test_lint.py
Normal file
15
tests/test_lint.py
Normal file
|
@ -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)
|
Loading…
Add table
Reference in a new issue