mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 21:08:03 +00:00
fix #385
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Changelog for chatmail deployment
|
# Changelog for chatmail deployment
|
||||||
|
|
||||||
|
## untagged
|
||||||
|
|
||||||
## 1.4.0 2024-07-28
|
## 1.4.0 2024-07-28
|
||||||
|
|
||||||
- Add `disable_ipv6` config option to chatmail.ini.
|
- Add `disable_ipv6` config option to chatmail.ini.
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ def test_get_user_dict_not_set(testaddr, example_config, caplog):
|
|||||||
user = example_config.get_user(testaddr)
|
user = example_config.get_user(testaddr)
|
||||||
assert not caplog.records
|
assert not caplog.records
|
||||||
assert user.get_userdb_dict() == {}
|
assert user.get_userdb_dict() == {}
|
||||||
assert len(caplog.records) == 1
|
assert len(caplog.records) == 0
|
||||||
|
|
||||||
user.set_password("")
|
user.set_password("")
|
||||||
assert user.get_userdb_dict() == {}
|
assert user.get_userdb_dict() == {}
|
||||||
assert len(caplog.records) == 2
|
assert len(caplog.records) == 1
|
||||||
|
|
||||||
|
|
||||||
def test_get_user_dict(make_config, tmp_path):
|
def test_get_user_dict(make_config, tmp_path):
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ class User:
|
|||||||
try:
|
try:
|
||||||
pw = self.password_path.read_text()
|
pw = self.password_path.read_text()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
logging.error(f"password not set for: {self.addr}")
|
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
if not pw:
|
if not pw:
|
||||||
|
|||||||
@@ -12,11 +12,10 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from packaging import version
|
|
||||||
|
|
||||||
import pyinfra
|
import pyinfra
|
||||||
|
|
||||||
from chatmaild.config import read_config, write_initial_config
|
from chatmaild.config import read_config, write_initial_config
|
||||||
|
from packaging import version
|
||||||
from termcolor import colored
|
from termcolor import colored
|
||||||
|
|
||||||
from . import dns, remote_funcs
|
from . import dns, remote_funcs
|
||||||
|
|||||||
Reference in New Issue
Block a user