diff --git a/tests/test_api.py b/tests/test_api.py index 89581dbc..8077fdde 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -17,7 +17,7 @@ class TestAPI(IsolatedAsyncioTestCase): """Test the API class in blinkpy.""" - def setUp(self): + async def asyncSetUp(self): """Set up Login Handler.""" self.blink = Blink(session=mock.AsyncMock()) self.auth = Auth() diff --git a/tests/test_auth.py b/tests/test_auth.py index b0f5122f..e8a81e0e 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -19,7 +19,7 @@ class TestAuth(IsolatedAsyncioTestCase): """Test the Auth class in blinkpy.""" - def setUp(self): + async def asyncSetUp(self): """Set up Login Handler.""" self.auth = Auth() @@ -29,7 +29,7 @@ def tearDown(self): @mock.patch("blinkpy.helpers.util.gen_uid") @mock.patch("blinkpy.auth.util.getpass") - def test_empty_init(self, getpwd, genuid): + async def test_empty_init(self, getpwd, genuid): """Test initialization with no params.""" auth = Auth() self.assertDictEqual(auth.data, {}) @@ -47,7 +47,7 @@ def test_empty_init(self, getpwd, genuid): @mock.patch("blinkpy.helpers.util.gen_uid") @mock.patch("blinkpy.auth.util.getpass") - def test_barebones_init(self, getpwd, genuid): + async def test_barebones_init(self, getpwd, genuid): """Test basebones initialization.""" login_data = {"username": "foo", "password": "bar"} auth = Auth(login_data) @@ -64,7 +64,7 @@ def test_barebones_init(self, getpwd, genuid): } self.assertDictEqual(auth.data, expected_data) - def test_full_init(self): + async def test_full_init(self): """Test full initialization.""" login_data = { "username": "foo", diff --git a/tests/test_blinkpy.py b/tests/test_blinkpy.py index 4caa81f1..96318feb 100644 --- a/tests/test_blinkpy.py +++ b/tests/test_blinkpy.py @@ -28,7 +28,7 @@ def tearDown(self): """Cleanup blink test object.""" self.blink = None - def test_initialization(self): + async def test_initialization(self): """Verify we can initialize blink.""" blink = Blink() self.assertEqual(blink.version, __version__)