mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: remove aiomongo completely (#380)
This commit is contained in:
parent
81b36bd192
commit
5586e5110d
4 changed files with 217 additions and 440 deletions
|
|
@ -1,15 +0,0 @@
|
|||
import importlib
|
||||
|
||||
import aiogram
|
||||
|
||||
|
||||
def test_file_deleted():
|
||||
try:
|
||||
major, minor, _ = aiogram.__version__.split(".")
|
||||
except ValueError: # raised if version is major.minor
|
||||
major, minor = aiogram.__version__.split(".")
|
||||
if major == "2" and int(minor) >= 11:
|
||||
mongo_aiomongo = importlib.util.find_spec("aiogram.contrib.fsm_storage.mongo_aiomongo")
|
||||
assert mongo_aiomongo is False, "Remove aiogram.contrib.fsm_storage.mongo_aiomongo file, and replace storage " \
|
||||
"in aiogram.contrib.fsm_storage.mongo with storage " \
|
||||
"from aiogram.contrib.fsm_storage.mongo_motor"
|
||||
Loading…
Add table
Add a link
Reference in a new issue