Skip to content

Commit

Permalink
Restore previous timezone tests (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored May 30, 2024
1 parent dea3cab commit 5215fa6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def assertNWBFileStructure(self, nwbfile_path: str, stub_test: bool = False):
with NWBHDF5IO(path=nwbfile_path) as io:
nwbfile = io.read()

self.assertEqual(nwbfile.session_start_time, datetime(2023, 11, 9, 10, 14, 37))
self.assertEqual(nwbfile.session_start_time, datetime(2023, 11, 9, 10, 14, 37).astimezone())

# Check original video added to acquisition
self.assertIn(self.original_video_name, nwbfile.acquisition)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def assertNWBFileStructure(self, nwbfile_path: str):

self.assertEqual(
nwbfile.session_start_time,
datetime(2021, 10, 7, 15, 3, 28, 635),
datetime(2021, 10, 7, 15, 3, 28, 635).astimezone(),
)

self.assertIn(self.device_name, nwbfile.devices)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def assertNWBFileStructure(self, nwbfile_path: FilePath):
with NWBHDF5IO(path=nwbfile_path) as io:
nwbfile = io.read()

expected_session_start_time = datetime(2020, 11, 3, 10, 35, 10)
expected_session_start_time = datetime(2020, 11, 3, 10, 35, 10).astimezone()
assert nwbfile.session_start_time == expected_session_start_time

assert "ElectricalSeriesAP" in nwbfile.acquisition
Expand Down

0 comments on commit 5215fa6

Please sign in to comment.