kopia lustrzana https://github.com/jedie/PyInventory
test code lint via pytest
rodzic
d638d72876
commit
4b9697ce8b
|
@ -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)
|
Ładowanie…
Reference in New Issue