make tox pass
This commit is contained in:
parent
defb4c10fd
commit
3d26248796
|
@ -17,7 +17,9 @@ def set_log_level(verbose: int, db: str):
|
||||||
logging.info("the delta chat database path is %s", db)
|
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
|
@click.pass_context
|
||||||
def teams_bot(ctx):
|
def teams_bot(ctx):
|
||||||
"""This bot connects your team to the outside and makes it addressable."""
|
"""This bot connects your team to the outside and makes it addressable."""
|
||||||
|
@ -25,9 +27,15 @@ def teams_bot(ctx):
|
||||||
|
|
||||||
@teams_bot.command()
|
@teams_bot.command()
|
||||||
@click.option("--email", type=str, default=None, help="the email account for the bot")
|
@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(
|
||||||
@click.option("--db", type=str, default="bot.db/db.sqlite", help="path to the bot's database")
|
"--password", type=str, default=None, help="the password of the email account"
|
||||||
@click.option("-v", "--verbose", count=True, help="show low level delta chat ffi events")
|
)
|
||||||
|
@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
|
@click.pass_context
|
||||||
def init(ctx, email: str, password: str, db: str, verbose: int):
|
def init(ctx, email: str, password: str, db: str, verbose: int):
|
||||||
"""Configure bot; create crew; add user to crew by scanning a QR code."""
|
"""Configure bot; create crew; add user to crew by scanning a QR code."""
|
||||||
|
|
|
@ -82,3 +82,4 @@ def chat(tmpdir):
|
||||||
# create chat partner from token
|
# create chat partner from token
|
||||||
# initiate a chat between them
|
# initiate a chat between them
|
||||||
# return the chat object
|
# return the chat object
|
||||||
|
print(token, str(ac.get_config("addr")))
|
||||||
|
|
|
@ -5,6 +5,5 @@ def test_help(cmd):
|
||||||
Usage: teams-bot [OPTIONS] COMMAND [ARGS]...
|
Usage: teams-bot [OPTIONS] COMMAND [ARGS]...
|
||||||
* -h, --help Show this message and exit.
|
* -h, --help Show this message and exit.
|
||||||
* init Configure bot; create crew; add user to crew by scanning a QR code.
|
* init Configure bot; create crew; add user to crew by scanning a QR code.
|
||||||
"""
|
""",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue