-
-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make name and email acquisition more reliable
- Loading branch information
Showing
2 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -560,7 +560,9 @@ def test_pull(self): | |
"date": self.yesterday, | ||
"amount": "1000.00", | ||
"ref": "Invoice 1", | ||
"payment_ref": "1234567890: Payment for Invoice(s) 1", | ||
"payment_ref": ( | ||
"1234567890: Payment for Invoice(s) 1 ([email protected])" | ||
), | ||
"partner_name": "Acme, Inc.", | ||
"unique_import_id": f"1234567890-{self.yesterday_timestamp}", | ||
}, | ||
|
@@ -572,7 +574,8 @@ def test_pull(self): | |
"amount": "-100.00", | ||
"ref": "Fee for Invoice 1", | ||
"payment_ref": ( | ||
"Transaction fee for 1234567890: Payment for Invoice(s) 1" | ||
"Transaction fee for 1234567890: Payment for Invoice(s) 1 " | ||
"([email protected])" | ||
), | ||
"partner_name": "PayPal", | ||
"unique_import_id": f"1234567890-{self.yesterday_timestamp}-FEE", | ||
|
@@ -634,7 +637,9 @@ def test_transaction_parse_1(self): | |
"date": self.today, | ||
"amount": "1000.00", | ||
"ref": "Invoice 1", | ||
"payment_ref": "1234567890: Payment for Invoice(s) 1", | ||
"payment_ref": ( | ||
"1234567890: Payment for Invoice(s) 1 ([email protected])" | ||
), | ||
"partner_name": "Acme, Inc.", | ||
"unique_import_id": f"1234567890-{self.today_timestamp}", | ||
}, | ||
|
@@ -694,7 +699,9 @@ def test_transaction_parse_2(self): | |
"date": self.today, | ||
"amount": "1000.00", | ||
"ref": "Invoice 1", | ||
"payment_ref": "1234567890: Payment for Invoice(s) 1", | ||
"payment_ref": ( | ||
"1234567890: Payment for Invoice(s) 1 ([email protected])" | ||
), | ||
"partner_name": "Acme, Inc.", | ||
"unique_import_id": f"1234567890-{self.today_timestamp}", | ||
}, | ||
|
@@ -754,7 +761,9 @@ def test_transaction_parse_3(self): | |
"date": self.today, | ||
"amount": "1000.00", | ||
"ref": "Invoice 1", | ||
"payment_ref": "1234567890: Payment for Invoice(s) 1", | ||
"payment_ref": ( | ||
"1234567890: Payment for Invoice(s) 1 ([email protected])" | ||
), | ||
"partner_name": "Acme, Inc.", | ||
"unique_import_id": f"1234567890-{self.today_timestamp}", | ||
}, | ||
|
@@ -766,7 +775,8 @@ def test_transaction_parse_3(self): | |
"amount": "-100.00", | ||
"ref": "Fee for Invoice 1", | ||
"payment_ref": ( | ||
"Transaction fee for 1234567890: Payment for Invoice(s) 1" | ||
"Transaction fee for 1234567890: Payment for Invoice(s) 1 " | ||
"([email protected])" | ||
), | ||
"partner_name": "PayPal", | ||
"unique_import_id": f"1234567890-{self.today_timestamp}-FEE", | ||
|
@@ -823,7 +833,9 @@ def test_transaction_parse_4(self): | |
"date": self.today, | ||
"amount": "1000.00", | ||
"ref": "Invoice 1", | ||
"payment_ref": "1234567890: Payment for Invoice(s) 1", | ||
"payment_ref": ( | ||
"1234567890: Payment for Invoice(s) 1 ([email protected])" | ||
), | ||
"partner_name": "Acme, Inc.", | ||
"unique_import_id": f"1234567890-{self.today_timestamp}", | ||
}, | ||
|