fix init.sh and test.sh

use tox for chatmaild non-online tests
This commit is contained in:
holger krekel
2023-10-21 12:10:13 +02:00
parent 00b4c484ff
commit 3716f2e429
4 changed files with 28 additions and 13 deletions

View File

@@ -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]