From 8bea62eeee153cf2d80f47d31c2407504be19202 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Thu, 30 Sep 2021 19:01:31 -0400 Subject: [PATCH] Update quotes in use-cases example --- examples/miniapps/use-cases/example/__main__.py | 8 ++++---- examples/miniapps/use-cases/example/adapters.py | 4 ++-- examples/miniapps/use-cases/example/usecases.py | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/miniapps/use-cases/example/__main__.py b/examples/miniapps/use-cases/example/__main__.py index 01d6741c..0d13b743 100644 --- a/examples/miniapps/use-cases/example/__main__.py +++ b/examples/miniapps/use-cases/example/__main__.py @@ -6,12 +6,12 @@ from .containers import UseCases, Adapters, TestAdapters def main(environment: str, email: str) -> None: - if environment == 'prod': + if environment == "prod": adapters = Adapters() - elif environment == 'test': + elif environment == "test": adapters = TestAdapters() else: - raise RuntimeError('Unknown environment') + raise RuntimeError("Unknown environment") use_cases = UseCases(adapters=adapters) @@ -19,5 +19,5 @@ def main(environment: str, email: str) -> None: use_case.execute(email) -if __name__ == '__main__': +if __name__ == "__main__": main(*sys.argv[1:]) diff --git a/examples/miniapps/use-cases/example/adapters.py b/examples/miniapps/use-cases/example/adapters.py index c84496a4..bd99a129 100644 --- a/examples/miniapps/use-cases/example/adapters.py +++ b/examples/miniapps/use-cases/example/adapters.py @@ -13,10 +13,10 @@ class EmailSender(metaclass=abc.ABCMeta): class SmtpEmailSender: def send(self, to: str, body: str) -> None: - print(f'Sending an email to {to} over SMTP, body="{body}"') + print(f"Sending an email to {to} over SMTP, body=\"{body}\"") class EchoEmailSender: def send(self, to: str, body: str) -> None: - print(f'Fake sending an email to {to}, body="{body}"') + print(f"Fake sending an email to {to}, body=\"{body}\"") diff --git a/examples/miniapps/use-cases/example/usecases.py b/examples/miniapps/use-cases/example/usecases.py index dd03f5c7..3a648476 100644 --- a/examples/miniapps/use-cases/example/usecases.py +++ b/examples/miniapps/use-cases/example/usecases.py @@ -18,5 +18,5 @@ class SignupUseCase: self.email_sender = email_sender def execute(self, email: str) -> None: - print(f'Sign up user {email}') - self.email_sender.send(email, f'Welcome, {email}') + print(f"Sign up user {email}") + self.email_sender.send(email, f"Welcome, {email}")