test code lint via pytest

pull/14/head
JensDiemer 2020-11-01 17:13:26 +01:00
rodzic d638d72876
commit 4b9697ce8b
1 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,15 @@
import shutil
import subprocess
from pathlib import Path
import inventory
BASE_PATH = Path(inventory.__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)