mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Make some dependency changes, support Python 3.10 and 3.11 (#5611)
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -3,14 +3,12 @@ import pytest
|
||||
from redbot.pytest.mod import *
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_modlog_register_casetype(mod):
|
||||
ct = {"name": "ban", "default_setting": True, "image": ":hammer:", "case_str": "Ban"}
|
||||
casetype = await mod.register_casetype(**ct)
|
||||
assert casetype is not None
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_modlog_case_create(mod, ctx, member_factory):
|
||||
from datetime import datetime, timezone
|
||||
|
||||
@@ -33,7 +31,6 @@ async def test_modlog_case_create(mod, ctx, member_factory):
|
||||
assert case.created_at == int(created_at.timestamp())
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_modlog_set_modlog_channel(mod, ctx):
|
||||
await mod.set_modlog_channel(ctx.guild, ctx.channel)
|
||||
assert await mod.get_modlog_channel(ctx.guild) == ctx.channel.id
|
||||
|
||||
Reference in New Issue
Block a user