From ad21f6fb6768da08fb14fc329970fe62584d7111 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 23 Apr 2022 15:02:01 +0100 Subject: [PATCH] Fix market tests --- handler/tests/test_markets.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/handler/tests/test_markets.py b/handler/tests/test_markets.py index d2bc332..16af798 100644 --- a/handler/tests/test_markets.py +++ b/handler/tests/test_markets.py @@ -114,13 +114,10 @@ $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"** -* Recipient name: Mark Veidemanis -* Sort code: **02-03-04** -* Account number: **0023-0045** -* Please send in **GBP** +Payment details will be released after verification has passed. +If you've already completed verification, they will be sent immediately. * Set **Company name** to **"PATHOGEN LIMITED"**""" - print("EXPECT", ad_text) self.assertEqual(ad_text, expected) def test_format_payment_details(self): @@ -130,9 +127,12 @@ $PAYMENT$ } payment_details_text = self.markets.format_payment_details("GBP", payment_details) - expected = """* Recipient name: Mark Veidemanis -* Sort code: **02-03-04** -* Account number: **0023-0045** -* Please send in **GBP**""" - print("EXPECT DETAIL", payment_details_text) + expected = """Payment details will be released after verification has passed. +If you've already completed verification, they will be sent immediately.""" self.assertEqual(payment_details_text, expected) + + expected_real = """* Sort code: **02-03-04** +* Account number: **0023-0045** +Please send in GBP.""" + payment_details_text_real = self.markets.format_payment_details("GBP", payment_details, real=True) + self.assertEqual(payment_details_text_real, expected_real)