__________________ TestLogsApi.test_recipient_history_seeded ___________________

self = <tests.test_api_attachments_phones_suppression_settings_logs.TestLogsApi object at 0x7f131b37f210>
api = <starlette.testclient.TestClient object at 0x7f131413c410>
db = <sqlalchemy.orm.session.Session object at 0x7f131413ff50>

    def test_recipient_history_seeded(self, api, db):
        ids = self._seed(db, user_id_of(api))
        r = api.get(f"/logs/recipient/{ids['cr1']}/history")
        assert r.status_code == 200
        d = r.json()
>       assert "email" in d
E       AssertionError: assert 'email' in {'attempts': [{'account_id': None, 'attempt_number': 1, 'campaign_id': 1, 'campaign_recipient_id': 1, ...}], 'events':...pe': 'sent', 'id': 1, ...}], 'recipient': {'amount': None, 'email': 'logsa@x.com', 'id': 1, 'invoice_number': '', ...}}
