aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-08-13 15:45:52 -0400
committerGravatar ionite34 <[email protected]>2022-08-13 15:45:52 -0400
commite4d00ffd7f747097cb07baf54aa8b2ad72bbb010 (patch)
tree3b86207f13f6a03e1b931fec39f3aede30865477 /tests
parentUpdated previous tests to use subset method (diff)
Corrected test use of utcnow
Corrected test case to use `datetime.utcnow()` to be consistent with target
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/moderation/infraction/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/exts/moderation/infraction/test_utils.py b/tests/bot/exts/moderation/infraction/test_utils.py
index 6c9af2555..29dadf372 100644
--- a/tests/bot/exts/moderation/infraction/test_utils.py
+++ b/tests/bot/exts/moderation/infraction/test_utils.py
@@ -309,7 +309,7 @@ class TestPostInfraction(unittest.IsolatedAsyncioTestCase):
async def test_normal_post_infraction(self):
"""Should return response from POST request if there are no errors."""
- now = datetime.now()
+ now = datetime.utcnow()
expected = {
"actor": self.ctx.author.id,
"hidden": True,