An open API service indexing awesome lists of open source software.

https://github.com/githubjakob/pytest-twilio-conversations-client-mock

Hobby project to mock the Twilio Rest Client in Pytest for Conversations API
https://github.com/githubjakob/pytest-twilio-conversations-client-mock

Last synced: 8 months ago
JSON representation

Hobby project to mock the Twilio Rest Client in Pytest for Conversations API

Awesome Lists containing this project

README

          

# Twilio Conversations Client Mock

Current status: Under development as a hobby project.

Works for the most basic operations, e.g. `conversations.create()` or `conversations(sid).fetch()`.
Currently many operations, fields or error cases are not implemented. (See the [tests](https://github.com/githubjakob/pytest-twilio-conversations-client-mock/tree/main/tests))

## Usage

```
pip install pytest-twilio-conversations-client-mock
```

Mock the Twilio Client in your tests:

```
patch("twilio.rest.Client", return_value=ClientMock()).start()
```

More see [example](https://github.com/githubjakob/pytest-twilio-conversations-client-mock/tree/main/example).