kopia lustrzana https://github.com/Yakifo/amqtt
disabling rich output for script help
rodzic
44dfd58972
commit
4701ba3faa
|
@ -13,7 +13,7 @@ from amqtt.utils import read_yaml_config
|
|||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
app = typer.Typer(add_completion=False)
|
||||
app = typer.Typer(add_completion=False, rich_markup_mode=None)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
|
|
@ -118,7 +118,7 @@ async def do_pub(
|
|||
logger.fatal("Publish canceled due to previous error")
|
||||
raise asyncio.CancelledError from ce
|
||||
|
||||
app = typer.Typer(add_completion=False)
|
||||
app = typer.Typer(add_completion=False, rich_markup_mode=None)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
|
|
@ -92,7 +92,7 @@ async def do_sub(client: MQTTClient,
|
|||
raise asyncio.CancelledError from exc
|
||||
|
||||
|
||||
app = typer.Typer(add_completion=False)
|
||||
app = typer.Typer(add_completion=False, rich_markup_mode=None)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
|
|
@ -66,18 +66,18 @@ def test_cli_help_messages():
|
|||
env["NO_COLOR"] = '1'
|
||||
|
||||
amqtt_path = "amqtt"
|
||||
output = subprocess.check_output([amqtt_path, "--help"], env=env)
|
||||
assert "Usage: amqtt" in output.decode("utf-8")
|
||||
output = subprocess.check_output([amqtt_path, "--help"], env=env, text=True)
|
||||
assert "Usage: amqtt" in output
|
||||
|
||||
|
||||
amqtt_sub_path = "amqtt_sub"
|
||||
output = subprocess.check_output([amqtt_sub_path, "--help"], env=env)
|
||||
assert "Usage: amqtt_sub" in output.decode("utf-8")
|
||||
output = subprocess.check_output([amqtt_sub_path, "--help"], env=env, text=True)
|
||||
assert "Usage: amqtt_sub" in output
|
||||
|
||||
|
||||
amqtt_pub_path = "amqtt_pub"
|
||||
output = subprocess.check_output([amqtt_pub_path, "--help"], env=env)
|
||||
assert "Usage: amqtt_pub" in output.decode("utf-8")
|
||||
output = subprocess.check_output([amqtt_pub_path, "--help"], env=env, text=True)
|
||||
assert "Usage: amqtt_pub" in output
|
||||
|
||||
|
||||
def test_broker_version():
|
||||
|
|
Ładowanie…
Reference in New Issue