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
21 lines
364 B
Python
21 lines
364 B
Python
from unittest.mock import MagicMock
|
|
|
|
import pytest
|
|
|
|
from redbot.cogs.admin import Admin
|
|
from redbot.cogs.admin.announcer import Announcer
|
|
|
|
__all__ = ["admin", "announcer"]
|
|
|
|
|
|
@pytest.fixture()
|
|
def admin(config):
|
|
return Admin(config)
|
|
|
|
|
|
@pytest.fixture()
|
|
def announcer(admin):
|
|
a = Announcer(MagicMock(), "Some message", admin.conf)
|
|
yield a
|
|
a.cancel()
|