Skip to content

Commit 2e3b9bc

Browse files
Copilotrlystephprince
authored
Fix Windows test failure by using deterministic past date in make_minimal_nwbfile (#609)
* Initial plan * Fix Windows test failure by using deterministic past date in make_minimal_nwbfile Co-authored-by: rly <[email protected]> * fix formatting --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: rly <[email protected]> Co-authored-by: Steph Prince <[email protected]> Co-authored-by: Ryan Ly <[email protected]>
1 parent 8e8a0a2 commit 2e3b9bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/nwbinspector/testing/_testing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ def make_minimal_nwbfile() -> NWBFile:
106106
107107
TODO: replace with pynwb.mock if we can require minimal PyNWB version (or perhaps just for a testing)
108108
"""
109-
return NWBFile(session_description="", identifier=str(uuid4()), session_start_time=datetime.now().astimezone())
109+
return NWBFile(
110+
session_description="", identifier=str(uuid4()), session_start_time=datetime(2010, 1, 1).astimezone()
111+
)
110112

111113

112114
def check_streaming_enabled() -> tuple[bool, Optional[str]]:

0 commit comments

Comments
 (0)