diff --git a/src/teams_bot/cli.py b/src/teams_bot/cli.py index f60ba62..3a55a80 100644 --- a/src/teams_bot/cli.py +++ b/src/teams_bot/cli.py @@ -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.""" diff --git a/tests/conftest.py b/tests/conftest.py index 07ea218..af47f5b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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 \ No newline at end of file + # return the chat object + print(token, str(ac.get_config("addr"))) diff --git a/tests/test_cli.py b/tests/test_cli.py index e33e3ea..d826831 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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. - """ + """, ) -