-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34d9963
commit 7408fa2
Showing
3 changed files
with
34 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
...odules/libraries/dagster-fivetran/dagster_fivetran_tests/experimental/test_asset_specs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
import uuid | ||
from typing import Callable | ||
|
||
import responses | ||
from dagster_fivetran import FivetranWorkspace | ||
|
||
|
||
def test_fetch_fivetran_workspace_data(workspace_data_api_mocks_fn: Callable) -> None: | ||
def test_fetch_fivetran_workspace_data(fetch_workspace_data_api_mocks: responses.RequestsMock) -> None: | ||
api_key = uuid.uuid4().hex | ||
api_secret = uuid.uuid4().hex | ||
|
||
resource = FivetranWorkspace(api_key=api_key, api_secret=api_secret) | ||
|
||
with workspace_data_api_mocks_fn(include_sync_endpoints=False): | ||
actual_workspace_data = resource.fetch_fivetran_workspace_data() | ||
assert len(actual_workspace_data.connectors_by_id) == 1 | ||
assert len(actual_workspace_data.destinations_by_id) == 1 | ||
actual_workspace_data = resource.fetch_fivetran_workspace_data() | ||
assert len(actual_workspace_data.connectors_by_id) == 1 | ||
assert len(actual_workspace_data.destinations_by_id) == 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters