Skip to content

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

Notifications You must be signed in to change notification settings

githubjakob/pytest-twilio-conversations-client-mock

Repository files navigation

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)

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published