diff options
author | 2022-08-13 15:45:52 -0400 | |
---|---|---|
committer | 2022-08-16 16:38:26 -0400 | |
commit | 08a6bbc306d1ec54998b690eeeb258548e8e08fa (patch) | |
tree | 9d5828b3188c1d3fa1af6bdae1fdb274bfdb1888 /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, |