From 2a0fca79b62ed3f404d352fa67162bf29d769d5d Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Fri, 7 Feb 2025 20:16:32 +0000 Subject: fix tests not working due to incorrect imports --- tests/test_discover.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_discover.py b/tests/test_discover.py index 9a2debd..28f62e0 100644 --- a/tests/test_discover.py +++ b/tests/test_discover.py @@ -1,6 +1,6 @@ from unittest import IsolatedAsyncioTestCase from unittest.mock import AsyncMock, patch -from discover import main +from discover import discover from bleak.backends.device import BLEDevice class TestDiscover(IsolatedAsyncioTestCase): @@ -10,7 +10,7 @@ class TestDiscover(IsolatedAsyncioTestCase): mock_discover.return_value = [device_1] - result = await main(debug_flag=False) + result = await discover() expected = [ {"name": "TP350S", "address": "AA:BB:CC:DD:EE:FF"}, @@ -25,7 +25,7 @@ class TestDiscover(IsolatedAsyncioTestCase): mock_discover.return_value = [device_1, device_2] - result = await main(debug_flag=True) + result = await discover() expected = [ {"name": "TP350S", "address": "AA:BB:CC:DD:EE:FF"}, -- cgit v1.2.3