mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed the mistaken variable name, motor is now optional dependency
This commit is contained in:
parent
f50c4dac9c
commit
d31e2a38e2
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue