mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
* I know this needs a changelog entry and docs still * update tests for new behavior * update docs, filter; add changelog * Ready for review * stop fetching the same Audit logs when the bot is the mod * I forgot to press save * fix a comprehension * Fix AttributeError * And the other place that happens * timing fixes
16 lines
321 B
Python
16 lines
321 B
Python
import pytest
|
|
from redbot.core import modlog
|
|
|
|
__all__ = ["mod"]
|
|
|
|
|
|
@pytest.fixture
|
|
async def mod(config, monkeypatch, red):
|
|
from redbot.core import Config
|
|
|
|
with monkeypatch.context() as m:
|
|
m.setattr(Config, "get_conf", lambda *args, **kwargs: config)
|
|
|
|
await modlog._init(red)
|
|
return modlog
|