Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Nov 8, 2024
1 parent 2917b43 commit 77756ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@


def test_fetch_fivetran_workspace_data(workspace_data_api_mocks_fn: Callable) -> None:
account_id = "fake_account_id"
api_key = uuid.uuid4().hex
api_secret = uuid.uuid4().hex

resource = FivetranWorkspace(api_key=api_key, api_secret=api_secret)
resource = FivetranWorkspace(account_id=account_id, 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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
def test_basic_resource_request(
connector_id: str, destination_id: str, group_id: str, workspace_data_api_mocks_fn: Callable
) -> None:
account_id = "fake_account_id"
api_key = uuid.uuid4().hex
api_secret = uuid.uuid4().hex

resource = FivetranWorkspace(api_key=api_key, api_secret=api_secret)
resource = FivetranWorkspace(account_id=account_id, api_key=api_key, api_secret=api_secret)

with workspace_data_api_mocks_fn() as response:
client = resource.get_client()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
def test_fivetran_workspace_data_to_fivetran_connector_table_props_data(
workspace_data_api_mocks_fn: Callable,
) -> None:
account_id = "fake_account_id"
api_key = uuid.uuid4().hex
api_secret = uuid.uuid4().hex

resource = FivetranWorkspace(api_key=api_key, api_secret=api_secret)
resource = FivetranWorkspace(account_id=account_id, 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()
Expand Down

0 comments on commit 77756ae

Please sign in to comment.