epapineau commented on code in PR #22938:
URL: https://github.com/apache/airflow/pull/22938#discussion_r882311354
##########
tests/providers/dbt/cloud/hooks/test_dbt_cloud.py:
##########
@@ -129,6 +129,13 @@ def test_init_hook(self):
assert hook.auth_type == TokenAuth
assert hook.method == "POST"
+ def test_init_hook_single_tenant(self):
+ hook = DbtCloudHook(tenant="single.tenant")
+ assert hook.dbt_cloud_conn_id == "dbt_cloud_default"
+ assert hook.base_url ==
"https://single.tenant.getdbt.com/api/v2/accounts/"
+ assert hook.auth_type == TokenAuth
+ assert hook.method == "POST"
Review Comment:
Definitely. I tried my hand at parameterizing this for an additional test
connection. Please lmk what you think.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]