From a384f2cd681fc358473809cb082ba41171da2a80 Mon Sep 17 00:00:00 2001 From: amit lissack Date: Wed, 20 Apr 2022 09:25:20 -0400 Subject: [PATCH] lint --- hardware/tests/firmware_integration/conftest.py | 4 +--- .../tests/opentrons_hardware/drivers/can_bus/test_driver.py | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/hardware/tests/firmware_integration/conftest.py b/hardware/tests/firmware_integration/conftest.py index 3693b8e41e3..badad47f022 100644 --- a/hardware/tests/firmware_integration/conftest.py +++ b/hardware/tests/firmware_integration/conftest.py @@ -1,7 +1,6 @@ """Common fixtures for integration tests.""" from __future__ import annotations import pytest -import asyncio from typing import AsyncGenerator, Iterator, AsyncIterator, List, Dict from _pytest.fixtures import FixtureRequest @@ -14,8 +13,7 @@ @pytest.fixture -async def driver( -) -> AsyncGenerator[AbstractCanDriver, None]: +async def driver() -> AsyncGenerator[AbstractCanDriver, None]: """Create CanDriver connected to OT-3 Emulator.""" settings = DriverSettings() driver = await build_driver(settings) diff --git a/hardware/tests/opentrons_hardware/drivers/can_bus/test_driver.py b/hardware/tests/opentrons_hardware/drivers/can_bus/test_driver.py index d8f76b6ed01..4194df6192b 100644 --- a/hardware/tests/opentrons_hardware/drivers/can_bus/test_driver.py +++ b/hardware/tests/opentrons_hardware/drivers/can_bus/test_driver.py @@ -1,5 +1,4 @@ """Can Driver tests.""" -import asyncio from typing import AsyncGenerator import pytest @@ -24,9 +23,7 @@ def can_bus(bus_channel: str) -> Bus: @pytest.fixture -async def subject( - bus_channel: str -) -> AsyncGenerator[CanDriver, None]: +async def subject(bus_channel: str) -> AsyncGenerator[CanDriver, None]: """The can driver under test.""" driver = await CanDriver.build(channel=bus_channel, interface="virtual", bitrate=0) yield driver