# Unit Testing Sendgrid API requests

**URL:** <https://forum.elixirforum.com/t/unit-testing-sendgrid-api-requests/32922>\
**Category:** Questions\
**Tags:** learning-elixir, unit-testing\
**Created:** [July 8, 2020, 4:25pm UTC](https://forum.elixirforum.com/t/unit-testing-sendgrid-api-requests/32922 "2020-07-08T16:25:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hauleth](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/hauleth/32/18942_2.png) [@hauleth](https://forum.elixirforum.com/u/hauleth)\
**Post date:** [July 8, 2020, 9:36pm UTC](https://forum.elixirforum.com/t/unit-testing-sendgrid-api-requests/32922/2 "2020-07-08T21:36:37Z")

</div>

Use [Bypass](https://github.com/PSPDFKit-labs/bypass) if you can. Alternatively you can implement [custom adapter](https://hexdocs.pm/tesla/Tesla.Adapter.html#content) that will allow you to intercept the requests (in fact I think it would be nice addition to Tesla itself).

---

_[View the full topic](https://forum.elixirforum.com/t/unit-testing-sendgrid-api-requests/32922)._
