Fixed the mistaken variable name, motor is now optional dependency

This commit is contained in:
asimaranov 2021-12-16 18:32:35 +03:00
parent f50c4dac9c
commit d31e2a38e2
2 changed files with 4 additions and 4 deletions

View file

@ -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