Skip to content

Commit

Permalink
Update filesystem config test
Browse files Browse the repository at this point in the history
  • Loading branch information
steinitzu committed May 22, 2024
1 parent d8fc215 commit 763300b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/load/filesystem/test_filesystem_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
from dlt.common import json, pendulum
from dlt.common.configuration import resolve
from dlt.common.configuration.inject import with_config
from dlt.common.configuration.specs import (
AzureCredentials,
AzureCredentialsWithoutDefaults,
)
from dlt.common.configuration.specs import AnyAzureCredentials
from dlt.common.storages import fsspec_from_config, FilesystemConfiguration
from dlt.common.storages.fsspec_filesystem import MTIME_DISPATCH, glob_files
from dlt.common.utils import custom_environ, uniq_id
Expand Down Expand Up @@ -43,10 +40,7 @@ def test_filesystem_configuration() -> None:
config = FilesystemConfiguration(bucket_url="az://root")
assert config.protocol == "az"
# print(config.resolve_credentials_type())
assert (
config.resolve_credentials_type()
== Union[AzureCredentialsWithoutDefaults, AzureCredentials]
)
assert config.resolve_credentials_type() == AnyAzureCredentials
assert dict(config) == {
"read_only": False,
"bucket_url": "az://root",
Expand Down

0 comments on commit 763300b

Please sign in to comment.