mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-16 09:03:09 +00:00
updated test for py 3.6
This commit is contained in:
parent
2cf720bd43
commit
678e50088c
1 changed files with 8 additions and 2 deletions
|
|
@ -150,12 +150,18 @@ def test_version(runner: CliRunner) -> None:
|
|||
def test_python_call() -> None:
|
||||
# give up fighting windows lol
|
||||
if sys.platform != "win32":
|
||||
x = subprocess.run(["python", "-m", "djlint", "-h"], capture_output=True)
|
||||
x = subprocess.run(
|
||||
["python", "-m", "djlint", "-h"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
)
|
||||
assert b"python -m djlint [OPTIONS] SRC ..." in x.stdout
|
||||
assert x.returncode == 0
|
||||
|
||||
x = subprocess.run(
|
||||
["python", "-m", "djlint", "__init__", "-h"], capture_output=True
|
||||
["python", "-m", "djlint", "__init__", "-h"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
)
|
||||
assert b"python -m djlint [OPTIONS] SRC ..." in x.stdout
|
||||
assert x.returncode == 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue