From b0f8a62c068599fede6ae36cb036eebb502f8c99 Mon Sep 17 00:00:00 2001 From: William Shin Date: Thu, 6 Apr 2023 10:01:43 -0700 Subject: [PATCH] [BUGFIX] Release Pipeline Fix (#7575) Co-authored-by: Chetan Kini --- ci/azure-pipelines.yml | 6 +++--- .../test_include_rendered_content.py | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ci/azure-pipelines.yml b/ci/azure-pipelines.yml index ce18a02632e1..b34537ed172f 100644 --- a/ci/azure-pipelines.yml +++ b/ci/azure-pipelines.yml @@ -443,9 +443,9 @@ stages: Python310: python.version: '3.10' constraints: 'ci/constraints-test/py310-min-install.txt' - Pandas20: - python.version: '3.9' - constraints: 'ci/constraints-test/pandas2-min-install.txt' + # Pandas20: + # python.version: '3.9' + # constraints: 'ci/constraints-test/pandas2-min-install.txt' variables: IMAGE_SUFFIX: $[ dependencies.make_suffix.outputs['suffix.IMAGE_SUFFIX'] ] steps: diff --git a/tests/data_context/cloud_data_context/test_include_rendered_content.py b/tests/data_context/cloud_data_context/test_include_rendered_content.py index 46a5741dff63..9a5f80226b98 100644 --- a/tests/data_context/cloud_data_context/test_include_rendered_content.py +++ b/tests/data_context/cloud_data_context/test_include_rendered_content.py @@ -8,12 +8,11 @@ ExpectationSuite, ExpectationValidationResult, ) -from great_expectations.core.batch import RuntimeBatchRequest +from great_expectations.data_context import CloudDataContext from great_expectations.data_context.cloud_constants import GXCloudRESTResource from great_expectations.data_context.types.refs import GXCloudResourceRef from great_expectations.render import RenderedAtomicContent from great_expectations.validator.validator import Validator -from great_expectations.data_context import CloudDataContext @pytest.mark.cloud @@ -34,12 +33,12 @@ def test_cloud_backed_data_context_save_expectation_suite_include_rendered_conte ) with mock.patch( - "great_expectations.data_context.store.gx_cloud_store_backend.GXCloudStoreBackend.list_keys" + "great_expectations.data_context.store.gx_cloud_store_backend.GXCloudStoreBackend.has_key" ), mock.patch( "great_expectations.data_context.store.gx_cloud_store_backend.GXCloudStoreBackend._set", return_value=cloud_ref, ): - expectation_suite: ExpectationSuite = context.add_expectation_suite( + expectation_suite: ExpectationSuite = context.add_or_update_expectation_suite( "test_suite" ) expectation_suite.expectations.append( @@ -114,7 +113,8 @@ def test_cloud_backed_data_context_expectation_validation_result_include_rendere ) with mock.patch( - "great_expectations.data_context.store.gx_cloud_store_backend.GXCloudStoreBackend.list_keys" + "great_expectations.data_context.store.gx_cloud_store_backend.GXCloudStoreBackend.has_key", + return_value=False, ), mock.patch( "great_expectations.data_context.store.gx_cloud_store_backend.GXCloudStoreBackend._set" ):