loadgenerator with various expriation cards
This commit is contained in:
parent
608809f16d
commit
be4d7913ff
1 changed files with 2 additions and 1 deletions
|
@ -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',
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue