Write a new test case for quarter name.
This commit is contained in:
+13
-1
@@ -5,7 +5,7 @@ from nextcord.ext import application_checks, commands
|
|||||||
|
|
||||||
from classes.election import Election
|
from classes.election import Election
|
||||||
from DakinySettings import settings
|
from DakinySettings import settings
|
||||||
from utils import GUILDS, get_active_election_cycle
|
from utils import GUILDS, get_active_election_cycle, get_quarter_name
|
||||||
|
|
||||||
ME = 206602713511886849
|
ME = 206602713511886849
|
||||||
|
|
||||||
@@ -141,3 +141,15 @@ class TestCog(commands.Cog, name="Test commands."):
|
|||||||
)
|
)
|
||||||
await cycle.term_start_action()
|
await cycle.term_start_action()
|
||||||
await interaction.send("Test command sent.", ephemeral=True)
|
await interaction.send("Test command sent.", ephemeral=True)
|
||||||
|
|
||||||
|
@test.subcommand()
|
||||||
|
@is_me()
|
||||||
|
async def get_quarter_name(self, interaction: nextcord.Interaction) -> None:
|
||||||
|
"""
|
||||||
|
Tests getting the quarter name.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
interaction (nextcord.Interaction): Interaction with the message.
|
||||||
|
"""
|
||||||
|
name = get_quarter_name()
|
||||||
|
await interaction.send(name)
|
||||||
|
|||||||
Reference in New Issue
Block a user