#Ritchie

1 messages · Page 1 of 1 (latest)

fossil sparrowBOT
kind quail
#

Hi, can you reword this bit please 'I want to reapply the products after I reset test mode data'? I'd like to make sure that I fully understand your question so I can provide the best support

soft wolf
#

Hi. So I am using test mode to test my subscription system. I have a set of products and prices for this testing. Every time I reset test data (through the dashboard), I create the same products and prices ready to use for testing again.

A fixture can help me apply these products and price objects through the CLI. This will save some time after I reset the test data

I'm asking how can I create a fixture

#

This is what I'm referring to

#

I'm unsure if a fixture is the best way to go about this, but I remember seeing a video by the stripe youtube channel - they applied a fixture with prices and products so you can follow along

kind quail
#

Once you delete your test data, you won't be able to access these objects. Can I ask why you keep deleting and then re-creating these test objects?

soft wolf
#

For example, while I'm testing, I create many customers, subscriptions, and other types of objects. Occasionally, I clear my test data, so I can continue testing but with a clean account to make sure everything is working on my end. Every time I delete the test data, obviously the products and prices are also deleted.

So, I have to go through the dashboard to create new products and prices and use those new objects in my next stages of testing. I was wondering if there's a quicker way to recreate these objects - i.e. using stripe CLI's fixtures to automate the creation process

kind quail
#

But yeah, here is the library you're looking for

soft wolf
#

Thank you