Skip to content

Commit

Permalink
Pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrondel committed Sep 9, 2024
1 parent 777a258 commit 3930926
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

from documenteer.conf.pipelinespkg import *


project = "ts_vent_controller"
html_theme_options["logotext"] = project
html_theme_options["logotext"] = project # type: ignore # noqa
html_title = project
html_short_title = project
16 changes: 8 additions & 8 deletions tests/test_fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@

class TestFan(unittest.IsolatedAsyncioTestCase):

async def asyncSetUp(self):
async def asyncSetUp(self) -> None:
cfg = Config()
cfg.hostname = "localhost"
cfg.port = 26034
self.controller = Controller(cfg, simulate=True)
await self.controller.connect()

async def asyncTearDown(self):
async def asyncTearDown(self) -> None:
await self.controller.stop()

async def test_fan_manual(self):
async def test_fan_manual(self) -> None:
self.assertTrue(
self.controller.fan_manual_control,
"Simulated drive expected to start in manual mode",
Expand All @@ -52,7 +52,7 @@ async def test_fan_manual(self):
"set_fan_manual_control should change state (to True)",
)

async def test_start_fan(self):
async def test_start_fan(self) -> None:
self.assertEqual(
0.0,
await self.controller.get_fan_frequency(),
Expand All @@ -65,7 +65,7 @@ async def test_start_fan(self):
"start_fan should change fan frequency to default value",
)

async def test_fan_stop_fan(self):
async def test_fan_stop_fan(self) -> None:
await self.controller.start_fan()
self.assertNotEqual(
0.0,
Expand All @@ -79,7 +79,7 @@ async def test_fan_stop_fan(self):
"stop_fan should change fan frequency to 0.0",
)

async def test_set_fan_frequency(self):
async def test_set_fan_frequency(self) -> None:
await self.controller.start_fan()
self.assertNotEqual(
0.0,
Expand All @@ -95,11 +95,11 @@ async def test_set_fan_frequency(self):
msg="set_fan_frequency should change fan frequency to 50.0",
)

async def test_fault_recover(self):
async def test_fault_recover(self) -> None:
r = await self.controller.vfd_fault_reset()
self.assertIsNone(r) # Yay I guess

async def test_last8faults(self):
async def test_last8faults(self) -> None:
last8 = await self.controller.last8faults()
self.assertEqual(len(last8), 8, "last8faults should return 8 elements")
for i, s in last8:
Expand Down

0 comments on commit 3930926

Please sign in to comment.