This commit is contained in:
holger krekel
2024-07-30 12:19:23 +02:00
parent e3f0bb195d
commit 3ee0b7e288
4 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
# Changelog for chatmail deployment
## untagged
## 1.4.0 2024-07-28
- Add `disable_ipv6` config option to chatmail.ini.

View File

@@ -12,11 +12,11 @@ def test_get_user_dict_not_set(testaddr, example_config, caplog):
user = example_config.get_user(testaddr)
assert not caplog.records
assert user.get_userdb_dict() == {}
assert len(caplog.records) == 1
assert len(caplog.records) == 0
user.set_password("")
assert user.get_userdb_dict() == {}
assert len(caplog.records) == 2
assert len(caplog.records) == 1
def test_get_user_dict(make_config, tmp_path):

View File

@@ -26,7 +26,6 @@ class User:
try:
pw = self.password_path.read_text()
except FileNotFoundError:
logging.error(f"password not set for: {self.addr}")
return {}
if not pw:

View File

@@ -12,11 +12,10 @@ import shutil
import subprocess
import sys
from pathlib import Path
from packaging import version
import pyinfra
from chatmaild.config import read_config, write_initial_config
from packaging import version
from termcolor import colored
from . import dns, remote_funcs