Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Jan 1, 2024
1 parent c118cc7 commit afd5b86
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions tests/safeds/data/image/containers/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ def _skip_if_device_not_available(device: Device) -> None:
class TestFromFile:
@pytest.mark.parametrize(
"resource_path",
[
*_test_images_all(),
*[Path(image_path) for image_path in _test_images_all()]
[*_test_images_all(), *[Path(image_path) for image_path in _test_images_all()]],
ids=[
*["file-" + image_id for image_id in _test_images_all_ids()],
*["path-" + image_id for image_id in _test_images_all_ids()],
],
ids=[*["file-" + image_id for image_id in _test_images_all_ids()], *["path-" + image_id for image_id in _test_images_all_ids()]]
)
def test_should_load_from_file(self, resource_path: str | Path, device: Device) -> None:
_skip_if_device_not_available(device)
Expand Down Expand Up @@ -473,8 +473,9 @@ class TestBrightness:
[_plane_jpg_path, _plane_png_path],
ids=[_plane_jpg_id, _plane_png_id],
)
def test_should_adjust_brightness(self, factor: float, resource_path: str, snapshot_png: SnapshotAssertion,
device: Device) -> None:
def test_should_adjust_brightness(
self, factor: float, resource_path: str, snapshot_png: SnapshotAssertion, device: Device,
) -> None:
_skip_if_device_not_available(device)
image = Image.from_file(resolve_resource_path(resource_path), device)
image_adjusted_brightness = image.adjust_brightness(factor)
Expand Down Expand Up @@ -570,8 +571,9 @@ class TestAdjustContrast:
[_plane_jpg_path, _plane_png_path],
ids=[_plane_jpg_id, _plane_png_id],
)
def test_should_adjust_contrast(self, factor: float, resource_path: str, snapshot_png: SnapshotAssertion,
device: Device) -> None:
def test_should_adjust_contrast(
self, factor: float, resource_path: str, snapshot_png: SnapshotAssertion, device: Device,
) -> None:
_skip_if_device_not_available(device)
image = Image.from_file(resolve_resource_path(resource_path), device)
image_adjusted_contrast = image.adjust_contrast(factor)
Expand Down Expand Up @@ -621,8 +623,9 @@ class TestSharpen:
[_plane_jpg_path, _plane_png_path],
ids=[_plane_jpg_id, _plane_png_id],
)
def test_should_sharpen(self, factor: float, resource_path: str, snapshot_png: SnapshotAssertion,
device: Device) -> None:
def test_should_sharpen(
self, factor: float, resource_path: str, snapshot_png: SnapshotAssertion, device: Device,
) -> None:
_skip_if_device_not_available(device)
image = Image.from_file(resolve_resource_path(resource_path), device)
image_sharpened = image.sharpen(factor)
Expand Down

0 comments on commit afd5b86

Please sign in to comment.