diff options
Diffstat (limited to 'packages/meshbay-hub/tests/conftest.py')
| -rw-r--r-- | packages/meshbay-hub/tests/conftest.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/conftest.py b/packages/meshbay-hub/tests/conftest.py index cb595c5..69c3c5b 100644 --- a/packages/meshbay-hub/tests/conftest.py +++ b/packages/meshbay-hub/tests/conftest.py @@ -95,7 +95,12 @@ def _skip_email_verification(monkeypatch): monkeypatch.setattr( "meshbay_hub.api.users._create_and_send_verification", _noop) - monkeypatch.setattr("meshbay_hub.mail._send", lambda msg: True) + # `**_` because `_send` takes a required keyword `purpose` — the gate + # that keeps the hub off the open-relay list. A stub with the old + # signature turns every send into a TypeError, which looks like a bug + # in the handler. `test_mail_is_not_a_relay.py` opts out of this and + # drives the real thing. + monkeypatch.setattr("meshbay_hub.mail._send", lambda msg, **_: True) @pytest.fixture(autouse=True) |