Feature Request: Fake Twilio Client #821
Labels
priority: low
Nice-to-have; can wait
status: waiting for feature
feature will be implemented in the future
status: waiting for feedback
waiting for feedback from the submitter
Issue Summary
Properly testing client code against Twilio python library isn't easy. None of the solutions I have found so far allow to run tests with good coverage that are reproducible and hermetic:
client.messages.send()
with invalid parameters or function names.localhost
instead ofapi.twilio.com
, but this means reverse-engineering the protocol used to talk to api.twilio.com and maintaining a server running just for tests.responses
python package to mock POST and GET requests to api.twilio.com is also very brittle, as the tests would break every time the client is changed. It also takes reverse engineering to know what the client expects.To solve that, could you please provide a library that allows users to test the integration with the Client instance?
The text was updated successfully, but these errors were encountered: