Skip to content

Commit 699ad19

Browse files
Update test_protection.py
1 parent cbd0356 commit 699ad19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_protection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from datetime import UTC, datetime, timedelta
1+
from datetime import datetime, timedelta, timezone
22
from unittest.mock import AsyncMock
33

44
import pytest
@@ -13,6 +13,9 @@
1313
)
1414

1515

16+
UTC = timezone.utc # for Python 3.10 support…
17+
18+
1619
class TestFailedAuthenticationAttempts:
1720
def test_init(self):
1821
key = "192.168.1.1"

0 commit comments

Comments
 (0)