Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Iulian Masar committed Feb 12, 2024
1 parent ceaf328 commit 4162ee5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def card(self):
self.mock_tokenization_request()

response = requests.post(card_registration.card_registration_url, data={
'cardNumber': '4970100000000154',
'cardNumber': '4970107111111119',
'cardCvx': '123',
'cardExpirationDate': '0124',
'accessKeyRef': card_registration.access_key,
Expand All @@ -148,7 +148,7 @@ def natural_user_card(self):
self.mock_tokenization_request()

response = requests.post(card_registration.card_registration_url, data={
'cardNumber': '4970101122334422',
'cardNumber': '4970107111111119',
'cardCvx': '123',
'cardExpirationDate': '0124',
'accessKeyRef': card_registration.access_key,
Expand All @@ -174,7 +174,7 @@ def legal_user_card(self):
self.mock_tokenization_request()

response = requests.post(card_registration.card_registration_url, data={
'cardNumber': '4970101122334406',
'cardNumber': '4970107111111119',
'cardCvx': '123',
'cardExpirationDate': '0124',
'accessKeyRef': card_registration.access_key,
Expand Down Expand Up @@ -539,7 +539,7 @@ def get_johns_card(recreate=False):
params = {
"data_XXX": card_registration.preregistration_data,
"accessKeyRef": card_registration.access_key,
"cardNumber": '4970101122334422',
"cardNumber": '4970107111111119',
"cardExpirationDate": '1224',
"cardCvx": '123'
}
Expand All @@ -563,7 +563,7 @@ def get_johns_card_3dsecure(recreate=False):
params = {
"data_XXX": card_registration.preregistration_data,
"accessKeyRef": card_registration.access_key,
"cardNumber": '4970105191923460',
"cardNumber": '4970107111111119',
"cardExpirationDate": '1224',
"cardCvx": '123'
}
Expand Down Expand Up @@ -609,7 +609,7 @@ def create_new_card_registration_for_deposit():
params = {
"data_XXX": card_registration.preregistration_data,
"accessKeyRef": card_registration.access_key,
"cardNumber": '4970105181818183',
"cardNumber": '4970107111111119',
"cardExpirationDate": '1224',
"cardCvx": '123'
}
Expand Down
6 changes: 3 additions & 3 deletions tests/test_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_cards_registration(self):

# Send card details to the Tokenization server
response = requests.post(card_registration.card_registration_url, urlrequest.urlencode({
'cardNumber': '4970100000000154',
'cardNumber': '4970107111111119',
'cardCvx': '123',
'cardExpirationDate': '0128',
'accessKeyRef': card_registration.access_key,
Expand Down Expand Up @@ -163,7 +163,7 @@ def test_cards_for_fingerprint(self):
self.assertIsNotNone(card_registration.get_pk())

response = requests.post(card_registration.card_registration_url, urlrequest.urlencode({
'cardNumber': '4970100000000154',
'cardNumber': '4970107111111119',
'cardCvx': '123',
'cardExpirationDate': '0128',
'accessKeyRef': card_registration.access_key,
Expand Down Expand Up @@ -239,7 +239,7 @@ def test_desactive_card(self):

# Send card details to the Tokenization server
response = requests.post(card_registration.card_registration_url, urlrequest.urlencode({
'cardNumber': '4970100000000154',
'cardNumber': '4970107111111119',
'cardCvx': '123',
'cardExpirationDate': '0128',
'accessKeyRef': card_registration.access_key,
Expand Down
6 changes: 3 additions & 3 deletions tests/test_preauthorizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def test_PreAuthorizations_CreateWithAvs(self):

saved_registration = card_registration.save()
data = {
'cardNumber': '4970105191923460',
'cardNumber': '4970107111111119',
'cardCvx': '123',
'cardExpirationDate': '1224',
'accessKeyRef': card_registration.access_key,
Expand Down Expand Up @@ -729,7 +729,7 @@ def test_PreAuthorizations_CreateDirect(self):

saved_registration = card_registration.save()
data = {
'cardNumber': '4970105191923460',
'cardNumber': '4970107111111119',
'cardCvx': '123',
'cardExpirationDate': '1224',
'accessKeyRef': card_registration.access_key,
Expand Down Expand Up @@ -799,7 +799,7 @@ def test_PreAuthorizations_CheckCardInfo(self):

saved_registration = card_registration.save()
data = {
'cardNumber': '4970105191923460',
'cardNumber': '4970107111111119',
'cardCvx': '123',
'cardExpirationDate': '1224',
'accessKeyRef': card_registration.access_key,
Expand Down

0 comments on commit 4162ee5

Please sign in to comment.