chore: remove pytz (#1520)

This commit is contained in:
wongcht 2023-08-30 22:41:17 +01:00 committed by GitHub
parent 93cb33d359
commit baaef0d21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -1,2 +1,2 @@
[settings] [settings]
known_third_party = aniso8601,graphql,graphql_relay,promise,pytest,pytz,pyutils,setuptools,snapshottest,sphinx_graphene_theme known_third_party = aniso8601,graphql,graphql_relay,promise,pytest,pyutils,setuptools,snapshottest,sphinx_graphene_theme

View File

@ -1,6 +1,5 @@
import datetime import datetime
import pytz
from graphql import GraphQLError from graphql import GraphQLError
from pytest import fixture from pytest import fixture
@ -30,7 +29,7 @@ schema = Schema(query=Query)
@fixture @fixture
def sample_datetime(): def sample_datetime():
utc_datetime = datetime.datetime(2019, 5, 25, 5, 30, 15, 10, pytz.utc) utc_datetime = datetime.datetime(2019, 5, 25, 5, 30, 15, 10, datetime.timezone.utc)
return utc_datetime return utc_datetime

View File

@ -53,7 +53,6 @@ tests_require = [
"snapshottest>=0.6,<1", "snapshottest>=0.6,<1",
"coveralls>=3.3,<4", "coveralls>=3.3,<4",
"mock>=4,<5", "mock>=4,<5",
"pytz==2022.1",
"iso8601>=1,<2", "iso8601>=1,<2",
] ]