blob: 9f10c221bc3765b9546e0ec3cb54ea080c64b41b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from subprocess import check_call
from isort.main import main
def test_django(tmpdir):
check_call(["git", "clone", "https://github.com/django/django", str(tmpdir)])
isort_target_dirs = [
str(target_dir) for target_dir in (tmpdir / "django", tmpdir / "tests", tmpdir / "scripts")
]
main(["--check-only", "--diff", *isort_target_dirs])
|