diff options
author | 2022-08-13 15:45:52 -0400 | |
---|---|---|
committer | 2022-08-13 15:45:52 -0400 | |
commit | e4d00ffd7f747097cb07baf54aa8b2ad72bbb010 (patch) | |
tree | 3b86207f13f6a03e1b931fec39f3aede30865477 /tests | |
parent | Updated 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.py | 2 |
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, |