mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
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...
This commit is contained in:
@@ -5,11 +5,11 @@ __all__ = ["bank"]
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def bank(config, monkeypatch):
|
||||
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
|
||||
bank_module._init()
|
||||
await bank_module._init()
|
||||
return bank_module
|
||||
|
||||
Reference in New Issue
Block a user