make tox pass

This commit is contained in:
missytake 2023-10-07 10:12:30 +02:00
parent defb4c10fd
commit 3d26248796
3 changed files with 15 additions and 7 deletions

View file

@ -17,7 +17,9 @@ def set_log_level(verbose: int, db: str):
logging.info("the delta chat database path is %s", db)
@click.command(cls=click.Group, context_settings={"help_option_names": ["-h", "--help"]})
@click.command(
cls=click.Group, context_settings={"help_option_names": ["-h", "--help"]}
)
@click.pass_context
def teams_bot(ctx):
"""This bot connects your team to the outside and makes it addressable."""
@ -25,9 +27,15 @@ def teams_bot(ctx):
@teams_bot.command()
@click.option("--email", type=str, default=None, help="the email account for the bot")
@click.option("--password", type=str, default=None, help="the password of the email account")
@click.option("--db", type=str, default="bot.db/db.sqlite", help="path to the bot's database")
@click.option("-v", "--verbose", count=True, help="show low level delta chat ffi events")
@click.option(
"--password", type=str, default=None, help="the password of the email account"
)
@click.option(
"--db", type=str, default="bot.db/db.sqlite", help="path to the bot's database"
)
@click.option(
"-v", "--verbose", count=True, help="show low level delta chat ffi events"
)
@click.pass_context
def init(ctx, email: str, password: str, db: str, verbose: int):
"""Configure bot; create crew; add user to crew by scanning a QR code."""

View file

@ -81,4 +81,5 @@ def chat(tmpdir):
# create bot account from token
# create chat partner from token
# initiate a chat between them
# return the chat object
# return the chat object
print(token, str(ac.get_config("addr")))

View file

@ -5,6 +5,5 @@ def test_help(cmd):
Usage: teams-bot [OPTIONS] COMMAND [ARGS]...
* -h, --help Show this message and exit.
* init Configure bot; create crew; add user to crew by scanning a QR code.
"""
""",
)