Skip to content

Commit

Permalink
[#2047] Change case document mocks for testing datetimes with offset
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-sigma committed Feb 1, 2024
1 parent bdbf1b9 commit 0e94c92
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/open_inwoner/openzaak/tests/test_case_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ def setUp(self):
titel="",
beschrijving="",
registratiedatum="2021-01-12",
# registratiedatum="2021-01-12T00:00:00+01:00",
)
self.informatie_object_invisible = generate_oas_component_cached(
"drc",
Expand All @@ -456,11 +455,9 @@ def setUp(self):
"info_id": self.informatie_object["uuid"],
},
),
created=datetime.datetime(2021, 1, 12, 0, 0, 0),
# corresponds to self.zaak_informatie_object
# created=datetime.datetime.strptime(
# self.zaak_informatie_object["registratiedatum"], "%Y-%m-%dT%H:%M:%S%z"
# )
created=datetime.datetime.fromisoformat(
self.zaak_informatie_object["registratiedatum"]
),
)
self.informatie_object_file_2 = SimpleFile(
name="another_document_title.txt",
Expand All @@ -472,7 +469,9 @@ def setUp(self):
"info_id": self.informatie_object_2["uuid"],
},
),
created=datetime.datetime(2024, 1, 12, 0, 0, 0),
created=datetime.datetime.fromisoformat(
self.zaak_informatie_object_2["registratiedatum"]
),
)
self.informatie_object_file_no_date = SimpleFile(
name="yet_another_document_title.txt",
Expand Down

0 comments on commit 0e94c92

Please sign in to comment.