-
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.
[4/n][dagster-tableau] Implement fetch_fivetran_workspace_data
- Loading branch information
1 parent
af34d01
commit 87a063b
Showing
5 changed files
with
269 additions
and
14 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
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
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
16 changes: 16 additions & 0 deletions
16
...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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import uuid | ||
from typing import Callable | ||
|
||
from dagster_fivetran import FivetranWorkspace | ||
|
||
|
||
def test_fetch_fivetran_workspace_data(workspace_data_api_mocks_fn: Callable) -> 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 |
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