aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2022-07-14 22:21:34 +0100
committerGravatar Izan <[email protected]>2022-07-14 22:21:34 +0100
commitb7e03616ac3fc0b5e8a5a77a352df593983d187a (patch)
tree8dbda2034eac965ea7e83ba62662ee3c0f0c5bfd /tests
parentFix tests (diff)
Address Reviews
- Use the more concise DATETIME timestamp instead of both a DATE and a TIME timestamp. - Remove underline from the "Reported ..." section at the bottom of the embed. - Re-add time of action/rejection timestamp to footer of embed.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/moderation/test_incidents.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/bot/exts/moderation/test_incidents.py b/tests/bot/exts/moderation/test_incidents.py
index ef33aa62b..da0a79ce8 100644
--- a/tests/bot/exts/moderation/test_incidents.py
+++ b/tests/bot/exts/moderation/test_incidents.py
@@ -119,14 +119,13 @@ class TestMakeEmbed(unittest.IsolatedAsyncioTestCase):
current_time = datetime.datetime(2022, 1, 1, 0, 0, 0, tzinfo=datetime.timezone.utc)
incident = MockMessage(content="this is an incident", created_at=current_time)
- day_timestamp = discord_timestamp(current_time, TimestampFormats.DATE)
- time_timestamp = discord_timestamp(current_time, TimestampFormats.TIME)
+ reported_timestamp = discord_timestamp(current_time)
relative_timestamp = discord_timestamp(current_time, TimestampFormats.RELATIVE)
embed, file = await incidents.make_embed(incident, incidents.Signal.ACTIONED, MockMember())
self.assertEqual(
- f"{incident.content}\n\n__*Reported {day_timestamp} at {time_timestamp} ({relative_timestamp}).*__",
+ f"{incident.content}\n\n*Reported {reported_timestamp} ({relative_timestamp}).*",
embed.description
)