diff --git a/cmdeploy/src/cmdeploy/__init__.py b/cmdeploy/src/cmdeploy/__init__.py index 265eccd..809730a 100644 --- a/cmdeploy/src/cmdeploy/__init__.py +++ b/cmdeploy/src/cmdeploy/__init__.py @@ -1,6 +1,7 @@ """ Chat Mail pyinfra deploy. """ + import sys import importlib.resources import subprocess @@ -303,9 +304,7 @@ def _configure_postfix(config: Config, debug: bool = False) -> bool: # Login map that 1:1 maps email address to login. login_map = files.put( - src=importlib.resources.files(__package__).joinpath( - "postfix/login_map" - ), + src=importlib.resources.files(__package__).joinpath("postfix/login_map"), dest="/etc/postfix/login_map", user="root", group="root", diff --git a/cmdeploy/src/cmdeploy/cmdeploy.py b/cmdeploy/src/cmdeploy/cmdeploy.py index 0fdb481..bde9b75 100644 --- a/cmdeploy/src/cmdeploy/cmdeploy.py +++ b/cmdeploy/src/cmdeploy/cmdeploy.py @@ -2,6 +2,7 @@ Provides the `cmdeploy` entry point function, along with command line option and subcommand parsing. """ + import argparse import shutil import subprocess diff --git a/cmdeploy/src/cmdeploy/tests/online/test_2_deltachat.py b/cmdeploy/src/cmdeploy/tests/online/test_2_deltachat.py index 2a03b65..e8a7244 100644 --- a/cmdeploy/src/cmdeploy/tests/online/test_2_deltachat.py +++ b/cmdeploy/src/cmdeploy/tests/online/test_2_deltachat.py @@ -142,7 +142,7 @@ def test_echobot(cmfactory, chatmail_config, lp): ac = cmfactory.get_online_accounts(1)[0] lp.sec(f"Send message to echo@{chatmail_config.mail_domain}") - chat = ac.create_chat(f'echo@{chatmail_config.mail_domain}') + chat = ac.create_chat(f"echo@{chatmail_config.mail_domain}") text = "hi, I hope you text me back" chat.send_text(text) lp.sec("Wait for reply from echobot")