mirror of
https://github.com/chatmail/relay.git
synced 2026-05-16 19:18:57 +00:00
fix init.sh and test.sh
use tox for chatmaild non-online tests
This commit is contained in:
@@ -2,6 +2,12 @@ from chatmaild.filtermail import check_encrypted, check_DATA, SendRateLimiter
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def maildomain():
|
||||
# let's not depend on a real chatmail instance for the offline tests below
|
||||
return "chatmail.example.org"
|
||||
|
||||
|
||||
def test_reject_forged_from(maildata, gencreds):
|
||||
class env:
|
||||
mail_from = gencreds()[0]
|
||||
|
||||
Reference in New Issue
Block a user