👷♂️ Consistently use sys.executable
to run subprocesses, needed by OpenSUSE (#408)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
parent
e001b15262
commit
416c612fb2
130 changed files with 370 additions and 177 deletions
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer.core
|
||||
from typer.testing import CliRunner
|
||||
|
@ -40,7 +41,7 @@ def test_coverage_call():
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -47,7 +47,7 @@ def test_install_completion():
|
|||
|
||||
def test_completion_invalid_instruction():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -63,7 +63,7 @@ def test_completion_invalid_instruction():
|
|||
|
||||
def test_completion_source_bash():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -81,7 +81,7 @@ def test_completion_source_bash():
|
|||
|
||||
def test_completion_source_invalid_shell():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -96,7 +96,7 @@ def test_completion_source_invalid_shell():
|
|||
|
||||
def test_completion_source_invalid_instruction():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -111,7 +111,7 @@ def test_completion_source_invalid_instruction():
|
|||
|
||||
def test_completion_source_zsh():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -126,7 +126,7 @@ def test_completion_source_zsh():
|
|||
|
||||
def test_completion_source_fish():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -141,7 +141,7 @@ def test_completion_source_fish():
|
|||
|
||||
def test_completion_source_powershell():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -159,7 +159,7 @@ def test_completion_source_powershell():
|
|||
|
||||
def test_completion_source_pwsh():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from docs_src.commands.help import tutorial001 as mod
|
||||
|
||||
|
||||
def test_completion_complete_subcommand_bash():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -23,7 +24,7 @@ def test_completion_complete_subcommand_bash():
|
|||
|
||||
def test_completion_complete_subcommand_bash_invalid():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -40,7 +41,7 @@ def test_completion_complete_subcommand_bash_invalid():
|
|||
|
||||
def test_completion_complete_subcommand_zsh():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -59,7 +60,7 @@ def test_completion_complete_subcommand_zsh():
|
|||
|
||||
def test_completion_complete_subcommand_zsh_files():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -75,7 +76,7 @@ def test_completion_complete_subcommand_zsh_files():
|
|||
|
||||
def test_completion_complete_subcommand_fish():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -95,7 +96,7 @@ def test_completion_complete_subcommand_fish():
|
|||
|
||||
def test_completion_complete_subcommand_fish_should_complete():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -112,7 +113,7 @@ def test_completion_complete_subcommand_fish_should_complete():
|
|||
|
||||
def test_completion_complete_subcommand_fish_should_complete_no():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -129,7 +130,7 @@ def test_completion_complete_subcommand_fish_should_complete_no():
|
|||
|
||||
def test_completion_complete_subcommand_powershell():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -147,7 +148,7 @@ def test_completion_complete_subcommand_powershell():
|
|||
|
||||
def test_completion_complete_subcommand_pwsh():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -165,7 +166,7 @@ def test_completion_complete_subcommand_pwsh():
|
|||
|
||||
def test_completion_complete_subcommand_noshell():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from docs_src.commands.index import tutorial002 as mod
|
||||
|
||||
|
||||
def test_completion_complete_subcommand_zsh():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -23,7 +24,7 @@ def test_completion_complete_subcommand_zsh():
|
|||
|
||||
def test_completion_complete_subcommand_fish():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -40,7 +41,7 @@ def test_completion_complete_subcommand_fish():
|
|||
|
||||
def test_completion_complete_subcommand_powershell():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -56,7 +57,7 @@ def test_completion_complete_subcommand_powershell():
|
|||
|
||||
def test_completion_complete_subcommand_pwsh():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from unittest import mock
|
||||
|
||||
|
@ -16,7 +17,7 @@ app.command()(mod.main)
|
|||
|
||||
def test_completion_install_no_shell():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--install-completion"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--install-completion"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -39,7 +40,15 @@ def test_completion_install_bash():
|
|||
if bash_completion_path.is_file():
|
||||
text = bash_completion_path.read_text()
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--install-completion", "bash"],
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"coverage",
|
||||
"run",
|
||||
mod.__file__,
|
||||
"--install-completion",
|
||||
"bash",
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -74,7 +83,15 @@ def test_completion_install_zsh():
|
|||
if completion_path.is_file():
|
||||
text = completion_path.read_text()
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--install-completion", "zsh"],
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"coverage",
|
||||
"run",
|
||||
mod.__file__,
|
||||
"--install-completion",
|
||||
"zsh",
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -103,7 +120,15 @@ def test_completion_install_fish():
|
|||
Path.home() / f".config/fish/completions/{script_path.name}.fish"
|
||||
)
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--install-completion", "fish"],
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"coverage",
|
||||
"run",
|
||||
mod.__file__,
|
||||
"--install-completion",
|
||||
"fish",
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from docs_src.commands.index import tutorial001 as mod
|
||||
|
||||
|
||||
def test_completion_show_no_shell():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--show-completion"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--show-completion"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -25,7 +26,15 @@ def test_completion_show_no_shell():
|
|||
|
||||
def test_completion_show_bash():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--show-completion", "bash"],
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"coverage",
|
||||
"run",
|
||||
mod.__file__,
|
||||
"--show-completion",
|
||||
"bash",
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -43,7 +52,15 @@ def test_completion_show_bash():
|
|||
|
||||
def test_completion_source_zsh():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--show-completion", "zsh"],
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"coverage",
|
||||
"run",
|
||||
mod.__file__,
|
||||
"--show-completion",
|
||||
"zsh",
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -58,7 +75,15 @@ def test_completion_source_zsh():
|
|||
|
||||
def test_completion_source_fish():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--show-completion", "fish"],
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"coverage",
|
||||
"run",
|
||||
mod.__file__,
|
||||
"--show-completion",
|
||||
"fish",
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -73,7 +98,15 @@ def test_completion_source_fish():
|
|||
|
||||
def test_completion_source_powershell():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--show-completion", "powershell"],
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"coverage",
|
||||
"run",
|
||||
mod.__file__,
|
||||
"--show-completion",
|
||||
"powershell",
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -91,7 +124,15 @@ def test_completion_source_powershell():
|
|||
|
||||
def test_completion_source_pwsh():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--show-completion", "pwsh"],
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"coverage",
|
||||
"run",
|
||||
mod.__file__,
|
||||
"--show-completion",
|
||||
"pwsh",
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from unittest import mock
|
||||
|
||||
|
@ -97,7 +98,7 @@ def test_callback_3_untyped_parameters():
|
|||
def test_completion_untyped_parameters():
|
||||
file_path = Path(__file__).parent / "assets/completion_no_types.py"
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -119,7 +120,7 @@ def test_completion_untyped_parameters():
|
|||
assert '"Carlos":"The writer of scripts."' in result.stdout
|
||||
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -130,7 +131,7 @@ def test_completion_untyped_parameters():
|
|||
def test_completion_untyped_parameters_different_order_correct_names():
|
||||
file_path = Path(__file__).parent / "assets/completion_no_types_order.py"
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -152,7 +153,7 @@ def test_completion_untyped_parameters_different_order_correct_names():
|
|||
assert '"Carlos":"The writer of scripts."' in result.stdout
|
||||
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_custom_prog_name():
|
||||
file_path = Path(__file__).parent / "assets/prog_name.py"
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path), "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path), "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_traceback_no_rich():
|
||||
file_path = Path(__file__).parent / "assets/type_error_no_rich.py"
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -26,7 +27,7 @@ def test_traceback_no_rich():
|
|||
def test_traceback_no_rich_short_disable():
|
||||
file_path = Path(__file__).parent / "assets/type_error_no_rich_short_disable.py"
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -46,7 +47,7 @@ def test_traceback_no_rich_short_disable():
|
|||
def test_unmodified_traceback():
|
||||
file_path = Path(__file__).parent / "assets/type_error_normal_traceback.py"
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -33,7 +34,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -35,7 +36,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
import typer.core
|
||||
|
@ -53,7 +54,7 @@ def test_call_env_var_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -40,7 +41,7 @@ def test_call_env_var2():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -40,7 +41,7 @@ def test_call_env_var_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
import typer.core
|
||||
|
@ -43,7 +44,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -30,7 +31,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -30,7 +31,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -30,7 +31,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -28,7 +29,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -28,7 +29,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
import typer.core
|
||||
|
@ -28,7 +29,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
import typer.core
|
||||
|
@ -41,7 +42,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
import typer.core
|
||||
|
@ -42,7 +43,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -31,7 +32,7 @@ def test_call_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -35,7 +36,7 @@ def test_delete():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer.core
|
||||
from typer.testing import CliRunner
|
||||
|
@ -71,7 +72,7 @@ def test_wrong_verbose():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -18,7 +19,7 @@ def test_app():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -23,7 +24,7 @@ def test_for_coverage():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -25,7 +26,7 @@ def test_app():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -25,7 +26,7 @@ def test_delete():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -31,7 +32,7 @@ def test_callback():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -31,7 +32,7 @@ def test_callback():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -20,7 +21,7 @@ def test_1():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -117,7 +118,7 @@ def test_init():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -48,7 +49,7 @@ def test_delete():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -36,7 +37,7 @@ def test_call():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -51,7 +52,7 @@ def test_delete():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -52,7 +53,7 @@ def test_delete():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -43,7 +44,7 @@ def test_call():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -47,7 +48,7 @@ def test_call():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -24,7 +25,7 @@ def test_call():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -23,7 +24,7 @@ def test_arg():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -32,7 +33,7 @@ def test_delete():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -31,7 +32,7 @@ def test_delete():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -24,7 +25,7 @@ def test_command():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -26,7 +27,7 @@ def test_command():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -88,7 +89,7 @@ def test_init():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
@ -12,7 +13,7 @@ runner = CliRunner()
|
|||
def test_traceback_rich():
|
||||
file_path = Path(mod.__file__)
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -34,7 +35,7 @@ def test_traceback_rich():
|
|||
def test_standard_traceback_env_var():
|
||||
file_path = Path(mod.__file__)
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -55,7 +56,7 @@ def test_standard_traceback_env_var():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
@ -12,7 +13,7 @@ runner = CliRunner()
|
|||
def test_traceback_rich():
|
||||
file_path = Path(mod.__file__)
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path), "secret"],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path), "secret"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -34,7 +35,7 @@ def test_traceback_rich():
|
|||
def test_standard_traceback_env_var():
|
||||
file_path = Path(mod.__file__)
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path), "secret"],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path), "secret"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -55,7 +56,7 @@ def test_standard_traceback_env_var():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
@ -12,7 +13,7 @@ runner = CliRunner()
|
|||
def test_traceback_rich_pretty_short_disable():
|
||||
file_path = Path(mod.__file__)
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -33,7 +34,7 @@ def test_traceback_rich_pretty_short_disable():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
@ -12,7 +13,7 @@ runner = CliRunner()
|
|||
def test_rich_pretty_exceptions_disable():
|
||||
file_path = Path(mod.__file__)
|
||||
result = subprocess.run(
|
||||
["coverage", "run", str(file_path)],
|
||||
[sys.executable, "-m", "coverage", "run", str(file_path)],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -31,7 +32,7 @@ def test_rich_pretty_exceptions_disable():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -17,7 +18,7 @@ def test_cli():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -25,7 +26,7 @@ def test_2():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -25,7 +26,7 @@ def test_2():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -49,7 +50,7 @@ def test_formal_3():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -49,7 +50,7 @@ def test_formal_1():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -44,7 +45,7 @@ def test_formal_1():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -19,7 +20,7 @@ def test_main():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -47,7 +48,7 @@ def test_valid_args():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -35,7 +36,7 @@ def test_3_user():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -30,7 +31,7 @@ def test_2_number():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -44,7 +45,7 @@ def test_invalid_user():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -25,7 +26,7 @@ def test_2():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -27,7 +28,7 @@ def test_2():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -37,7 +38,7 @@ def test_script():
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -27,7 +28,7 @@ def test_2():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -37,7 +38,7 @@ def test_script():
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -40,7 +41,7 @@ def test_formal():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -36,7 +37,7 @@ def test_help():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -27,7 +28,7 @@ def test_help():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -27,7 +28,7 @@ def test_call():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -34,7 +35,7 @@ def test_call_long():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -28,7 +29,7 @@ def test_call():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -34,7 +35,7 @@ def test_call_long():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -46,7 +47,7 @@ def test_call_condensed_wrong_order():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -34,7 +35,7 @@ def test_help():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -34,7 +35,7 @@ def test_help():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -48,7 +49,7 @@ def test_help():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
import typer.core
|
||||
|
@ -45,7 +46,7 @@ def test_help_no_rich():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -32,7 +33,7 @@ def test_3():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -42,7 +43,7 @@ def test_script():
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -10,7 +11,7 @@ runner = CliRunner()
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -34,7 +35,7 @@ def test_1():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -10,7 +11,7 @@ runner = CliRunner()
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -34,7 +35,7 @@ def test_1():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -10,7 +11,7 @@ runner = CliRunner()
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -34,7 +35,7 @@ def test_1():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -10,7 +11,7 @@ runner = CliRunner()
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -35,7 +36,7 @@ def test_1():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -10,7 +11,7 @@ runner = CliRunner()
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -37,7 +38,7 @@ def test_1():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from typer.testing import CliRunner
|
||||
|
||||
|
@ -10,7 +11,7 @@ runner = CliRunner()
|
|||
|
||||
def test_completion():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, " "],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, " "],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
@ -37,7 +38,7 @@ def test_1():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -43,7 +44,7 @@ def test_invalid_no_force():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
import typer.core
|
||||
|
@ -62,7 +63,7 @@ def test_invalid_no_accept():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -34,7 +35,7 @@ def test_no_force():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -38,7 +39,7 @@ def test_short_demo():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -43,7 +44,7 @@ def test_invalid():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -25,7 +26,7 @@ def test_usa_weird_date_format():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -41,7 +42,7 @@ def test_invalid():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -25,7 +26,7 @@ def test_mix():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import typer
|
||||
|
@ -24,7 +25,7 @@ def test_main(tmpdir):
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import typer
|
||||
|
@ -26,7 +27,7 @@ def test_main(tmpdir):
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import typer
|
||||
|
@ -23,7 +24,7 @@ def test_main(tmpdir):
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import typer
|
||||
|
@ -27,7 +28,7 @@ def test_main(tmpdir):
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import typer
|
||||
|
@ -29,7 +30,7 @@ def test_main(tmpdir):
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -44,7 +45,7 @@ def test_invalid():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
import typer.core
|
||||
|
@ -90,7 +91,7 @@ def test_negative_score():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
import typer
|
||||
from typer.testing import CliRunner
|
||||
|
@ -33,7 +34,7 @@ def test_clamped():
|
|||
|
||||
def test_script():
|
||||
result = subprocess.run(
|
||||
["coverage", "run", mod.__file__, "--help"],
|
||||
[sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf-8",
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue