Skip to content

Commit e4b9a27

Browse files
committed
test: set threshold=1.0 in OEDB test to ensure downloaded data is saved
The OEDB database currently contains more than 20% faulty turbine data entries. Setting the threshold to 1.0 forces the downloaded data to be saved to disk, ensuring that the file modification timestamp check passes. Assisted-by: gemini-3.5-flash
1 parent 52aea18 commit e4b9a27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_data_handling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_store_turbine_data_from_oedb(self, caplog):
9393
for fn in os.listdir(self.orig_path):
9494
t[fn] = os.path.getmtime(os.path.join(self.orig_path, fn))
9595
with caplog.at_level(logging.WARNING):
96-
store_turbine_data_from_oedb()
96+
store_turbine_data_from_oedb(threshold=1.0)
9797
for fn in os.listdir(self.orig_path):
9898
assert t[fn] < os.path.getmtime(os.path.join(self.orig_path, fn))
9999
assert "The turbine library data contains too many faulty" not in caplog.text

0 commit comments

Comments
 (0)