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 a44d586 commit de7c6f3
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 @@ -7,10 +7,11 @@
def test_fetch_fivetran_workspace_data(
fetch_workspace_data_api_mocks: responses.RequestsMock,
) -> 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)

actual_workspace_data = resource.fetch_fivetran_workspace_data()
assert len(actual_workspace_data.connectors_by_id) == 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ def test_basic_resource_request(
group_id: str,
all_api_mocks: responses.RequestsMock,
) -> 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)

client = resource.get_client()
client.get_connector_details(connector_id=connector_id)
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(
fetch_workspace_data_api_mocks: 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)

actual_workspace_data = resource.fetch_fivetran_workspace_data()
table_props_data = actual_workspace_data.to_fivetran_connector_table_props_data()
Expand Down

0 comments on commit de7c6f3

Please sign in to comment.