mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
* Move all fixtures to pytest plugin folder * Add core dunder all * Update other dunder all's * Black reformat
16 lines
322 B
Python
16 lines
322 B
Python
import pytest
|
|
|
|
__all__ = ["mod"]
|
|
|
|
|
|
@pytest.fixture
|
|
def mod(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 modlog
|
|
|
|
modlog._register_defaults()
|
|
return modlog
|