From c561fd5ca62c46b4fcaa074e25c29167b10a0c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Wed, 17 Apr 2024 14:18:51 +0200 Subject: [PATCH] fix ruff tests --- payments/stripe/forms.py | 3 ++- payments/stripe/providers.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/payments/stripe/forms.py b/payments/stripe/forms.py index 53a20d25e..63930fa2f 100644 --- a/payments/stripe/forms.py +++ b/payments/stripe/forms.py @@ -51,7 +51,8 @@ def clean(self): "amount": int(self.payment.total * 100), "currency": self.payment.currency, "card": data["stripeToken"], - "description": f"{self.payment.billing_last_name} {self.payment.billing_first_name}", + "description": f"{self.payment.billing_last_name} " + f"{self.payment.billing_first_name}", "metadata": stripe_metadata, } diff --git a/payments/stripe/providers.py b/payments/stripe/providers.py index c377a4090..8f37d18b3 100644 --- a/payments/stripe/providers.py +++ b/payments/stripe/providers.py @@ -131,7 +131,8 @@ def create_session(self, payment): session_data.update( { "customer_data": { - "customer_name": f"{payment.billing_first_name} {payment.billing_last_name}" + "customer_name": f"{payment.billing_first_name} " + f"{payment.billing_last_name}" } } )