mirror of
https://github.com/chatmail/relay.git
synced 2026-05-18 18:18:57 +00:00
apply code review and also catch "." as username
This commit is contained in:
@@ -43,7 +43,15 @@ def test_get_user_maildir(make_config):
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
config.get_user_maildir("")
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
config.get_user_maildir(None)
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
config.get_user_maildir("../some@something.testrun.org")
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
config.get_user_maildir("..")
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
config.get_user_maildir(".")
|
||||
|
||||
Reference in New Issue
Block a user