diff --git a/src/datacustomcode/deploy.py b/src/datacustomcode/deploy.py index 8e8d45f..dd9f76f 100644 --- a/src/datacustomcode/deploy.py +++ b/src/datacustomcode/deploy.py @@ -388,7 +388,6 @@ def deploy_full( access_token = _retrieve_access_token(credentials) # prepare payload - prepare_dependency_archive(directory) verify_data_transform_config(directory) # create deployment and upload payload diff --git a/tests/test_deploy.py b/tests/test_deploy.py index bfce533..5a2d238 100644 --- a/tests/test_deploy.py +++ b/tests/test_deploy.py @@ -737,7 +737,6 @@ def test_create_data_transform(self, mock_make_api_call, mock_get_config): class TestDeployFull: @patch("datacustomcode.deploy._retrieve_access_token") - @patch("datacustomcode.deploy.prepare_dependency_archive") @patch("datacustomcode.deploy.verify_data_transform_config") @patch("datacustomcode.deploy.create_deployment") @patch("datacustomcode.deploy.zip") @@ -752,7 +751,6 @@ def test_deploy_full( mock_zip, mock_create_deployment, mock_verify_config, - mock_prepare, mock_retrieve_token, ): """Test full deployment process.""" @@ -782,7 +780,6 @@ def test_deploy_full( # Assertions mock_retrieve_token.assert_called_once_with(credentials) - mock_prepare.assert_called_once_with("/test/dir") mock_verify_config.assert_called_once_with("/test/dir") mock_create_deployment.assert_called_once_with(access_token, metadata) mock_zip.assert_called_once_with("/test/dir") @@ -815,7 +812,6 @@ def test_run_data_transform(self, mock_make_api_call): class TestDeployFullWithDockerIntegration: @patch("datacustomcode.deploy._retrieve_access_token") - @patch("datacustomcode.deploy.prepare_dependency_archive") @patch("datacustomcode.deploy.verify_data_transform_config") @patch("datacustomcode.deploy.create_deployment") @patch("datacustomcode.deploy.zip") @@ -832,7 +828,6 @@ def test_deploy_full_happy_path( mock_zip, mock_create_deployment, mock_verify_config, - mock_prepare, mock_retrieve_token, ): """Test full deployment process with Docker dependency building.""" @@ -865,7 +860,6 @@ def test_deploy_full_happy_path( # Assertions mock_retrieve_token.assert_called_once_with(credentials) - mock_prepare.assert_called_once_with("/test/dir") # Docker dependency building mock_verify_config.assert_called_once_with("/test/dir") mock_create_deployment.assert_called_once_with(access_token, metadata) mock_zip.assert_called_once_with("/test/dir")