Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Nov 25, 2024
1 parent 1b2ace4 commit de5b336
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ def test_translator_spec(
first_asset_metadata = next(asset.metadata for asset in all_assets)
assert FivetranMetadataSet.extract(first_asset_metadata).connector_id == "connector_id"

# clear the asset specs cache post test
# load_fivetran_asset_specs.cache_clear()


def test_cached_load_spec_single_resource(
fetch_workspace_data_api_mocks: responses.RequestsMock,
Expand All @@ -74,9 +71,6 @@ def test_cached_load_spec_single_resource(
workspace.load_asset_specs()
assert len(fetch_workspace_data_api_mocks.calls) == 4

# clear the asset specs cache post test
# load_fivetran_asset_specs.cache_clear()


def test_cached_load_spec_multiple_resources(
fetch_workspace_data_api_mocks: responses.RequestsMock,
Expand All @@ -103,9 +97,6 @@ def test_cached_load_spec_multiple_resources(
another_workspace.load_asset_specs()
assert len(fetch_workspace_data_api_mocks.calls) == 4 + 4

# clear the asset specs cache post test
# load_fivetran_asset_specs.cache_clear()


def test_cached_load_spec_with_asset_factory(
fetch_workspace_data_api_mocks: responses.RequestsMock,
Expand All @@ -121,6 +112,3 @@ def test_cached_load_spec_with_asset_factory(
# then load_fivetran_asset_specs is called once per connector ID in fivetran_assets
build_fivetran_assets_definitions(workspace=resource)
assert len(fetch_workspace_data_api_mocks.calls) == 4

# clear the asset specs cache post test
# load_fivetran_asset_specs.cache_clear()

0 comments on commit de5b336

Please sign in to comment.