From 941e0dea55c91567c4eda18c95c5f8d0f856151c Mon Sep 17 00:00:00 2001 From: Ernest Prabhakar Date: Sun, 22 Oct 2023 08:35:48 +0200 Subject: [PATCH] async test --- .vscode/settings.json | 1 - tests/test_api.py | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 2b5a17a..f2d428f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,6 +5,5 @@ ], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, - "python.formatting.provider": "black", "python.analysis.typeCheckingMode": "basic" } diff --git a/tests/test_api.py b/tests/test_api.py index a4c1c4e..4a9e187 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -3,17 +3,17 @@ from .conftest import TEST_BKT, TEST_PKG -def test_api_get_registry(): - assert get_registry(TEST_BKT) is not None +async def test_api_get_registry(): + assert await get_registry(TEST_BKT) is not None -def test_api_list_registry(): - assert list_registry(TEST_BKT) is not None +async def test_api_list_registry(): + assert await list_registry(TEST_BKT) is not None -def test_api_get_package(): - assert get_package(TEST_BKT, TEST_PKG) is not None +async def test_api_get_package(): + assert await get_package(TEST_BKT, TEST_PKG) is not None -def test_api_list_package(): - assert list_package(TEST_BKT, TEST_PKG) is not None +async def test_api_list_package(): + assert await list_package(TEST_BKT, TEST_PKG) is not None