Skip to content

Commit 743829f

Browse files
committed
make fmt
1 parent 759d2ff commit 743829f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ def test_storage_credential(env_or_skip, make_storage_credential, make_random):
897897
)
898898
```
899899

900-
See also [`ws`](#ws-fixture).
900+
See also [`ws`](#ws-fixture), [`watchdog_remove_after`](#watchdog_remove_after-fixture).
901901

902902

903903
[[back to top](#python-testing-for-databricks)]
@@ -1106,7 +1106,7 @@ See also [`ws`](#ws-fixture).
11061106
### `watchdog_remove_after` fixture
11071107
Purge time for test objects, representing the (UTC-based) hour from which objects may be purged.
11081108

1109-
See also [`make_catalog`](#make_catalog-fixture), [`make_cluster`](#make_cluster-fixture), [`make_instance_pool`](#make_instance_pool-fixture), [`make_job`](#make_job-fixture), [`make_model`](#make_model-fixture), [`make_pipeline`](#make_pipeline-fixture), [`make_query`](#make_query-fixture), [`make_schema`](#make_schema-fixture), [`make_serving_endpoint`](#make_serving_endpoint-fixture), [`make_table`](#make_table-fixture), [`make_warehouse`](#make_warehouse-fixture), [`watchdog_purge_suffix`](#watchdog_purge_suffix-fixture).
1109+
See also [`make_catalog`](#make_catalog-fixture), [`make_cluster`](#make_cluster-fixture), [`make_instance_pool`](#make_instance_pool-fixture), [`make_job`](#make_job-fixture), [`make_model`](#make_model-fixture), [`make_pipeline`](#make_pipeline-fixture), [`make_query`](#make_query-fixture), [`make_schema`](#make_schema-fixture), [`make_serving_endpoint`](#make_serving_endpoint-fixture), [`make_storage_credential`](#make_storage_credential-fixture), [`make_table`](#make_table-fixture), [`make_warehouse`](#make_warehouse-fixture), [`watchdog_purge_suffix`](#watchdog_purge_suffix-fixture).
11101110

11111111

11121112
[[back to top](#python-testing-for-databricks)]

src/databricks/labs/pytester/fixtures/catalog.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,13 @@ def create(
419419
aws_iam_role_arn: str = "",
420420
read_only=False,
421421
) -> StorageCredentialInfo:
422-
comment = { "RemoveAfter": watchdog_remove_after }
422+
comment = {"RemoveAfter": watchdog_remove_after}
423423
if aws_iam_role_arn != "":
424424
storage_credential = ws.storage_credentials.create(
425-
credential_name, aws_iam_role=AwsIamRoleRequest(role_arn=aws_iam_role_arn), read_only=read_only, comment=comment
425+
credential_name,
426+
aws_iam_role=AwsIamRoleRequest(role_arn=aws_iam_role_arn),
427+
read_only=read_only,
428+
comment=comment,
426429
)
427430
else:
428431
azure_service_principal = AzureServicePrincipal(directory_id, application_id, client_secret)

0 commit comments

Comments
 (0)