Skip to content

Commit

Permalink
remove imports and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lhw committed Dec 28, 2024
1 parent e6a6fbd commit e88c119
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion aiocloudweather/conversion.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
""" A list of all the unit conversions. Many are just approximations."""

from .const import (
UnitOfIrradiance,
UnitOfPrecipitationDepth,
UnitOfPressure,
UnitOfSpeed,
Expand Down
1 change: 0 additions & 1 deletion aiocloudweather/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
fahrenheit_to_celsius,
in_to_mm,
inhg_to_hpa,
lux_to_wm2,
mph_to_ms,
)
from .const import (
Expand Down
7 changes: 0 additions & 7 deletions tests/test_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
fahrenheit_to_celsius,
in_to_mm,
inhg_to_hpa,
lux_to_wm2,
mph_to_ms,
)

Expand All @@ -25,12 +24,6 @@ def test_in_to_mm():
assert round(in_to_mm(0.5), 2) == 12.7


def test_lux_to_wm2():
assert round(lux_to_wm2(100), 2) == 1.08
assert round(lux_to_wm2(500), 2) == 5.38
assert round(lux_to_wm2(1000), 2) == 10.75


def test_mph_to_ms():
assert round(mph_to_ms(10), 4) == 4.4704
assert round(mph_to_ms(30), 4) == 13.4112
Expand Down

0 comments on commit e88c119

Please sign in to comment.