1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Enable Ruff PT006 (#88165)

* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
This commit is contained in:
Franck Nijhof
2023-02-15 14:09:50 +01:00
committed by GitHub
parent 6f38bc274a
commit ed79265843
411 changed files with 1532 additions and 1123 deletions

View File

@@ -24,7 +24,7 @@ def test_raise_deprecation_warning(caplog: pytest.LogCaptureFixture) -> None:
@pytest.mark.parametrize(
"function_name, value, expected",
("function_name", "value", "expected"),
[
("liter_to_gallon", 2, pytest.approx(0.528344)),
("gallon_to_liter", 2, 7.570823568),
@@ -96,7 +96,7 @@ def test_convert_from_cubic_feet() -> None:
@pytest.mark.parametrize(
"source_unit,target_unit,expected",
("source_unit", "target_unit", "expected"),
[
(VOLUME_CUBIC_FEET, VOLUME_CUBIC_METERS, 14.1584233),
(VOLUME_CUBIC_FEET, VOLUME_FLUID_OUNCE, 478753.2467),