forked from jonescompneurolab/hnn-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add sleep to test_write_configuration overwrite check
- Loading branch information
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
# Rajat Partani <[email protected]> | ||
|
||
from pathlib import Path | ||
from time import sleep | ||
import pytest | ||
import numpy as np | ||
|
||
|
@@ -168,6 +169,7 @@ def test_write_configuration(tmp_path, jones_2009_network): | |
|
||
# Overwrite network check | ||
last_mod_time1 = path_out.stat().st_mtime | ||
sleep(0.05) | ||
jones_2009_network.write_configuration(path_out) | ||
last_mod_time2 = path_out.stat().st_mtime | ||
assert last_mod_time1 < last_mod_time2 | ||
|