mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
* Move all fixtures to pytest plugin folder * Add core dunder all * Update other dunder all's * Black reformat
14 lines
289 B
Python
14 lines
289 B
Python
import pytest
|
|
|
|
from redbot.cogs.alias import Alias
|
|
from redbot.core import Config
|
|
|
|
__all__ = ["alias"]
|
|
|
|
|
|
@pytest.fixture()
|
|
def alias(config, monkeypatch):
|
|
with monkeypatch.context() as m:
|
|
m.setattr(Config, "get_conf", lambda *args, **kwargs: config)
|
|
return Alias(None)
|