From 0094da841eda920dbe72da4201bde355476dbea5 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 24 Mar 2022 20:24:35 +0000 Subject: [PATCH] Fix markets tests --- handler/tests/test_markets.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/handler/tests/test_markets.py b/handler/tests/test_markets.py index f8ec81c..17bab98 100644 --- a/handler/tests/test_markets.py +++ b/handler/tests/test_markets.py @@ -46,23 +46,22 @@ $PAYMENT$ payment_details_text = self.markets.format_payment_details("GBP", payment_details) ad_text = self.markets.format_ad("XMR", "GBP", payment_details_text) expected = """* Set **Country of recipient's bank** to **"United Kingdom"** -* Company name: **PATHOGEN LIMITED** +* Recipient name: Mark Veidemanis * Sort code: **02-03-04** * Account number: **0023-0045** * Please send in **GBP** -* If you are asked for address information, please use **24 Holborn Viaduct, London, England, EC1A 2BN** -* The post code is **EC1A 2BN** * Set **Company name** to **"PATHOGEN LIMITED"**""" + + print("EXPECT", ad_text) self.assertEqual(ad_text, expected) def test_format_payment_details(self): payment_details = {"sort_code": "02-03-04", "account_number": "0023-0045"} payment_details_text = self.markets.format_payment_details("GBP", payment_details) - expected = """* Company name: **PATHOGEN LIMITED** + expected = """* Recipient name: Mark Veidemanis * Sort code: **02-03-04** * Account number: **0023-0045** -* Please send in **GBP** -* If you are asked for address information, please use **24 Holborn Viaduct, London, England, EC1A 2BN** -* The post code is **EC1A 2BN**""" +* Please send in **GBP**""" + print("EXPECT DETAIL", payment_details_text) self.assertEqual(payment_details_text, expected)