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 assert any(a["message_id"] == "m111" for a in d["attempts"]) def test_requires_auth(self, api):