From fdde958a6d4f6fafd92daefc6e4e2f9c135b04d4 Mon Sep 17 00:00:00 2001 From: peterstone2017 Date: Mon, 13 Jun 2022 11:40:02 -0500 Subject: [PATCH 1/2] unskip test_common_libraries for 3.7 --- tests/endtoend/test_linux_consumption.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/endtoend/test_linux_consumption.py b/tests/endtoend/test_linux_consumption.py index f64e37827..3e8391958 100644 --- a/tests/endtoend/test_linux_consumption.py +++ b/tests/endtoend/test_linux_consumption.py @@ -64,8 +64,6 @@ def test_http_no_auth(self): resp = ctrl.send_request(req) self.assertEqual(resp.status_code, 200) - @skipIf(is_python_version('3.7'), - "Skip the tests for Python 3.7.") def test_common_libraries(self): """A function app with the following requirements.txt: From 347f88e081963d9b37dfd7ac03f6ccb1a688b63d Mon Sep 17 00:00:00 2001 From: peterstone2017 Date: Tue, 14 Jun 2022 11:48:00 -0500 Subject: [PATCH 2/2] move statuscode check up --- tests/endtoend/test_linux_consumption.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/endtoend/test_linux_consumption.py b/tests/endtoend/test_linux_consumption.py index 3e8391958..cf9039567 100644 --- a/tests/endtoend/test_linux_consumption.py +++ b/tests/endtoend/test_linux_consumption.py @@ -85,6 +85,7 @@ def test_common_libraries(self): }) req = Request('GET', f'{ctrl.url}/api/HttpTrigger') resp = ctrl.send_request(req) + self.assertEqual(resp.status_code, 200) content = resp.json() self.assertIn('azure.functions', content) self.assertIn('azure.storage.blob', content) @@ -92,7 +93,6 @@ def test_common_libraries(self): self.assertIn('cryptography', content) self.assertIn('pyodbc', content) self.assertIn('requests', content) - self.assertEqual(resp.status_code, 200) def test_new_protobuf(self): """A function app with the following requirements.txt: