Skip to content

Commit

Permalink
Python manual fixes (mypy)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuchenb committed Nov 8, 2023
1 parent 939585f commit 37a3a5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ghga_datasteward_kit/s3_upload/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class LegacyConfig(BaseSettings):
),
)
part_size: int = Field(
16, description="Upload part size in MiB. Has to be between 5 and 5120."
default=16, description="Upload part size in MiB. Has to be between 5 and 5120."
)
output_dir: Path = Field(
...,
Expand Down
5 changes: 3 additions & 2 deletions tests/fixtures/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"""A config fixture"""

from collections.abc import Generator
from pathlib import Path
from tempfile import TemporaryDirectory

import pytest
Expand All @@ -34,7 +35,7 @@ def legacy_config_fixture() -> Generator[LegacyConfig, None, None]:
s3_access_key_id=SecretStr("test_access_key"),
s3_secret_access_key=SecretStr("test_secret_key"),
bucket_id="test_bucket",
output_dir=output_dir,
output_dir=Path(output_dir),
)


Expand All @@ -49,7 +50,7 @@ def config_fixture() -> Generator[Config, None, None]:
s3_access_key_id=SecretStr("test_access_key"),
s3_secret_access_key=SecretStr("test_secret_key"),
bucket_id="test_bucket",
output_dir=output_dir,
output_dir=Path(output_dir),
secret_ingest_pubkey=public_key,
secret_ingest_baseurl="https://not-a-real-url",
)

0 comments on commit 37a3a5b

Please sign in to comment.