From 83e5485869c6b540faa41dd561dd7d7e70ba24ac Mon Sep 17 00:00:00 2001 From: Leah Cole Date: Mon, 18 Nov 2019 11:19:12 -0800 Subject: [PATCH 1/2] Fix failing functions test --- functions/helloworld/main_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/helloworld/main_test.py b/functions/helloworld/main_test.py index bdb18682061d..2f75aa3003eb 100644 --- a/functions/helloworld/main_test.py +++ b/functions/helloworld/main_test.py @@ -69,8 +69,7 @@ def test_hello_content_json(app): def test_hello_content_empty_json(app): with app.test_request_context(json=''): with pytest.raises( - ValueError, - message="JSON is invalid, or missing a 'name' property"): + ValueError, match="JSON is invalid, or missing a 'name' property"): main.hello_content(flask.request) From 8e13c5a41840e472e28f030f13749da768883fba Mon Sep 17 00:00:00 2001 From: Leah Cole Date: Mon, 18 Nov 2019 11:33:35 -0800 Subject: [PATCH 2/2] lint --- functions/helloworld/main_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/helloworld/main_test.py b/functions/helloworld/main_test.py index 2f75aa3003eb..cb44029dca2e 100644 --- a/functions/helloworld/main_test.py +++ b/functions/helloworld/main_test.py @@ -69,7 +69,8 @@ def test_hello_content_json(app): def test_hello_content_empty_json(app): with app.test_request_context(json=''): with pytest.raises( - ValueError, match="JSON is invalid, or missing a 'name' property"): + ValueError, + match="JSON is invalid, or missing a 'name' property"): main.hello_content(flask.request)