Dj-stripe: How to do integration tests

Created on 6 Mar 2019  路  3Comments  路  Source: dj-stripe/dj-stripe

How do you usually write integration tests for dj-stripe in your application?
Has anyone tried stripe-mock?

question

All 3 comments

For my application I'm using vcrpy (https://github.com/kevin1024/vcrpy) to create fixtures of the API calls made by dj-stripe. This works reasonably well.

We're going to look at stripe-mock for making dj-stripes's own tests more maintainable.

Related, #567

stripe-mock's problem is it's not a very good quality mock. it's just placeholder data and doesnt support anything like version gates, dynamic assignments etc

Was this page helpful?
0 / 5 - 0 ratings

Related issues

therefromhere picture therefromhere  路  4Comments

jleclanche picture jleclanche  路  6Comments

allthetime picture allthetime  路  7Comments

mattstrayer picture mattstrayer  路  5Comments

skjortan23 picture skjortan23  路  3Comments