diff --git a/app/user/rest.py b/app/user/rest.py index e4544c083..6cfa8edea 100644 --- a/app/user/rest.py +++ b/app/user/rest.py @@ -353,7 +353,9 @@ def create_2fa_code( current_app.logger.info("TESTING REDIS") redis_store.raw_set("TESTKEY5", "WORKS") - current_app.logger.info(f"SHOULD SEE THE WORD 'WORKS' HERE: {redis_store.get('TESTKEY5')}") + current_app.logger.info( + f"SHOULD SEE THE WORD 'WORKS' HERE: {redis_store.get('TESTKEY5')}" + ) key = f"2facode-{saved_notification.id}".replace(" ", "") recipient = str(recipient) diff --git a/tests/app/user/test_rest_verify.py b/tests/app/user/test_rest_verify.py index 3e1b3250b..d7d42a019 100644 --- a/tests/app/user/test_rest_verify.py +++ b/tests/app/user/test_rest_verify.py @@ -454,7 +454,7 @@ def test_send_user_email_code( sample_user.auth_type = auth_type mock_redis_get = mocker.patch("app.celery.scheduled_tasks.redis_store.raw_get") - mock_redis_get.return_value="foo" + mock_redis_get.return_value = "foo" mocker.patch("app.celery.scheduled_tasks.redis_store.raw_set")