Skip to content

Commit

Permalink
Run lint:fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JimMadge committed Nov 23, 2023
1 parent bde5fd4 commit e908111
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions tests_/config/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def config_no_sres(context, azure_config, pulumi_config, shm_config, tags_config
azure=azure_config,
pulumi=pulumi_config,
shm=shm_config,
tags=tags_config
tags=tags_config,
)


Expand All @@ -223,7 +223,7 @@ def config_sres(context, azure_config, pulumi_config, shm_config, tags_config):
"sre1": sre_config_1,
"sre2": sre_config_2,
},
tags=tags_config
tags=tags_config,
)


Expand Down Expand Up @@ -291,13 +291,15 @@ def test_is_complete_bare(self, context, require_sres):
config = Config(context=context)
assert config.is_complete(require_sres=require_sres) is False

def test_constructor(self, context, azure_config, pulumi_config, shm_config, tags_config):
def test_constructor(
self, context, azure_config, pulumi_config, shm_config, tags_config
):
config = Config(
context=context,
azure=azure_config,
pulumi=pulumi_config,
shm=shm_config,
tags=tags_config
tags=tags_config,
)
assert not config.sres

Expand All @@ -319,16 +321,18 @@ def test_to_yaml(self, config_sres, config_yaml):
def test_from_yaml(self, config_sres, config_yaml):
config = Config.from_yaml(config_yaml)
assert config == config_sres
assert isinstance(config.sres["sre1"].software_packages, SoftwarePackageCategory)
assert isinstance(
config.sres["sre1"].software_packages, SoftwarePackageCategory
)

def test_upload(self, config_sres, monkeypatch):
def mock_upload_blob(
self,
blob_data: bytes | str,
blob_name: str,
resource_group_name: str,
storage_account_name: str,
storage_container_name: str,
self, # noqa: ARG001
blob_data: bytes | str, # noqa: ARG001
blob_name: str, # noqa: ARG001
resource_group_name: str, # noqa: ARG001
storage_account_name: str, # noqa: ARG001
storage_container_name: str, # noqa: ARG001
):
pass

Expand All @@ -337,7 +341,7 @@ def mock_upload_blob(

def test_from_remote(self, context, config_sres, config_yaml, monkeypatch):
def mock_download_blob(
self,
self, # noqa: ARG001
blob_name: str,
resource_group_name: str,
storage_account_name: str,
Expand Down

0 comments on commit e908111

Please sign in to comment.