From 86a54f3ebf0d3c7584fac2580ed86caf5fe5fbeb Mon Sep 17 00:00:00 2001 From: Andrew McGrath Date: Fri, 26 Jun 2020 14:20:16 -0400 Subject: [PATCH] This commit removes any local configuration that would interfer with packaging the application as it now requires the use of a profile --- tests/integration/test_package.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tests/integration/test_package.py b/tests/integration/test_package.py index c06739ab4b..6d6c443716 100644 --- a/tests/integration/test_package.py +++ b/tests/integration/test_package.py @@ -63,7 +63,8 @@ def assert_can_package_dependency( for content in contents: assert content in package_content - def test_can_package_with_dashes_in_name(self, runner, app_skeleton): + def test_can_package_with_dashes_in_name(self, runner, app_skeleton, + no_local_config): self.assert_can_package_dependency( runner, app_skeleton, @@ -73,7 +74,8 @@ def test_can_package_with_dashes_in_name(self, runner, app_skeleton): ], ) - def test_can_package_simplejson(self, runner, app_skeleton): + def test_can_package_simplejson(self, runner, app_skeleton, + no_local_config): self.assert_can_package_dependency( runner, app_skeleton, @@ -83,7 +85,8 @@ def test_can_package_simplejson(self, runner, app_skeleton): ], ) - def test_can_package_sqlalchemy(self, runner, app_skeleton): + def test_can_package_sqlalchemy(self, runner, app_skeleton, + no_local_config): # SQLAlchemy is used quite often with Chalice so we want to ensure # we can package it correctly. self.assert_can_package_dependency( @@ -97,7 +100,7 @@ def test_can_package_sqlalchemy(self, runner, app_skeleton): @pytest.mark.skipif(sys.version_info[0] == 2, reason='pandas==1.0.3 is only suported on py3.') - def test_can_package_pandas(self, runner, app_skeleton): + def test_can_package_pandas(self, runner, app_skeleton, no_local_config): self.assert_can_package_dependency( runner, app_skeleton, @@ -128,7 +131,8 @@ def test_does_not_package_bad_requirements_file( assert str(ex) == 'Could not satisfy the requirement: %s' % package def test_packaging_requirements_keeps_same_hash(self, runner, - app_skeleton): + app_skeleton, + no_local_config): req = os.path.join(app_skeleton, 'requirements.txt') package = 'botocore==1.12.202' with open(req, 'w') as f: @@ -143,7 +147,8 @@ def test_packaging_requirements_keeps_same_hash(self, runner, new_checksum = self._calculate_checksum(package_output_location) assert original_checksum == new_checksum - def test_preserves_executable_permissions(self, runner, app_skeleton): + def test_preserves_executable_permissions(self, runner, app_skeleton, + no_local_config): vendor = os.path.join(app_skeleton, 'vendor') os.makedirs(vendor) executable_file = os.path.join(vendor, 'myscript.sh')