Skip to content

Commit

Permalink
test: use pytz in test_rulemetrics()
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Strzelecki <florian.strzelecki@gmail.com>
  • Loading branch information
SnoopJ and Exirel committed May 23, 2023
1 parent bc6e173 commit 93c5e3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/plugins/test_plugins_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import re

import pytest
import pytz

from sopel import bot, loader, plugin, trigger
from sopel.plugins import rules
Expand Down Expand Up @@ -468,7 +469,7 @@ def test_manager_has_action_command_aliases():
# tests for :class:`Manager`

def test_rulemetrics():
now = datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc)
now = pytz.utc.localize(datetime.datetime.utcnow())
time_window = datetime.timedelta(seconds=3600)
metrics = rules.RuleMetrics()

Expand Down

0 comments on commit 93c5e3c

Please sign in to comment.