loadgenerator with various expriation cards

This commit is contained in:
Tobias Traxel 2019-12-11 09:37:14 +01:00
parent 608809f16d
commit be4d7913ff

View file

@ -51,6 +51,7 @@ def addToCart(l):
def checkout(l):
addToCart(l)
years = ['2020', '2023', '2035', '2027', '2028']
l.client.post("/cart/checkout", {
'email': 'someone@example.com',
'street_address': '1600 Amphitheatre Parkway',
@ -60,7 +61,7 @@ def checkout(l):
'country': 'United States',
'credit_card_number': '4432-8015-6152-0454',
'credit_card_expiration_month': '1',
'credit_card_expiration_year': '2039',
'credit_card_expiration_year': random.choice(years),
'credit_card_cvv': '672',
})