From d31e2a38e2232879ae2292e53a4cb96515b6fc2f Mon Sep 17 00:00:00 2001 From: asimaranov Date: Thu, 16 Dec 2021 18:32:35 +0300 Subject: [PATCH] Fixed the mistaken variable name, motor is now optional dependency --- pyproject.toml | 2 +- tests/conftest.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c47ecd80..45a61c9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ aiohttp-socks = { version = "^0.5.5", optional = true } # Redis aioredis = { version = "^2.0.0", optional = true } # Mongodb -motor = "^2.5.1" +motor = { version = "^2.5.1", optional = true } # Docs Sphinx = { version = "^4.2.0", optional = true } diff --git a/tests/conftest.py b/tests/conftest.py index 78bb43d7..71827c6f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -70,10 +70,10 @@ async def memory_storage(): @pytest.fixture() @pytest.mark.mongo -async def mongo_storage(redis_server): - if not redis_server: +async def mongo_storage(mongo_server): + if not mongo_server: pytest.skip("Mongo is not available here") - storage = MongoStorage.from_url(redis_server) + storage = MongoStorage.from_url(mongo_server) try: yield storage