Skip to content

Commit

Permalink
test: remove code for replacing datetime timezone #265
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Jan 28, 2022
1 parent 1d730d1 commit 5571722
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/search_api/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
"title": DATASET_ICAT_DATA["name"],
"creationDate": DateHandler.str_to_datetime_object(
DATASET_ICAT_DATA["createTime"],
).replace(tzinfo=timezone.utc),
),
"isPublic": True,
"size": None,
"documents": [],
Expand All @@ -222,13 +222,11 @@
"doi": INVESTIGATION_ICAT_DATA["doi"],
"startDate": DateHandler.str_to_datetime_object(
INVESTIGATION_ICAT_DATA["startDate"],
).replace(tzinfo=timezone.utc),
"endDate": DateHandler.str_to_datetime_object(
INVESTIGATION_ICAT_DATA["endDate"],
).replace(tzinfo=timezone.utc),
),
"endDate": DateHandler.str_to_datetime_object(INVESTIGATION_ICAT_DATA["endDate"]),
"releaseDate": DateHandler.str_to_datetime_object(
INVESTIGATION_ICAT_DATA["releaseDate"],
).replace(tzinfo=timezone.utc),
),
"license": None,
"keywords": [KEYWORD_ICAT_DATA["name"]],
"datasets": [],
Expand Down

0 comments on commit 5571722

Please sign in to comment.