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
- Host: GitHub
- URL: https://github.com/githubjakob/pytest-twilio-conversations-client-mock
- Owner: githubjakob
- Created: 2022-08-02T09:21:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-02T10:17:10.000Z (almost 4 years ago)
- Last Synced: 2025-08-28T06:27:11.273Z (10 months ago)
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).