Skip to content

Commit

Permalink
This commit removes any local configuration that would interfer with …
Browse files Browse the repository at this point in the history
…packaging the application as it now requires the use of a profile
  • Loading branch information
andrew-mcgrath committed Jun 26, 2020
1 parent 663e95c commit 86a54f3
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tests/integration/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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(
Expand All @@ -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,
Expand Down Expand Up @@ -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:
Expand All @@ -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')
Expand Down

0 comments on commit 86a54f3

Please sign in to comment.