[V3] Make pytest fixtures available as a plugin (#1858)

* Move all fixtures to pytest plugin folder

* Add core dunder all

* Update other dunder all's

* Black reformat
This commit is contained in:
Will
2018-06-22 21:33:06 -04:00
committed by Toby Harradine
parent d23620727e
commit afa08713e0
22 changed files with 304 additions and 218 deletions

15
redbot/pytest/economy.py Normal file
View File

@@ -0,0 +1,15 @@
import pytest
__all__ = ["bank"]
@pytest.fixture()
def bank(config, monkeypatch):
from redbot.core import Config
with monkeypatch.context() as m:
m.setattr(Config, "get_conf", lambda *args, **kwargs: config)
from redbot.core import bank
bank._register_defaults()
return bank