jack1142 b11359eebb
Add float -> int migration to Bank (float was a bug) (#4386)
* Add float -> int migration to Bank (float was a bug)

* wrong refs

* Cause ctx manager compares before and after values...
2020-09-01 02:04:19 +02:00

16 lines
380 B
Python

import pytest
from redbot.core import bank as bank_module
__all__ = ["bank"]
@pytest.fixture()
async def bank(config, monkeypatch):
from redbot.core import Config
with monkeypatch.context() as m:
m.setattr(Config, "get_conf", lambda *args, **kwargs: config)
# noinspection PyProtectedMember
await bank_module._init()
return bank_module