Skip to content

Commit f42bee0

Browse files
committed
Test if files are writen by store_turbine_data_from_oedb()
1 parent 6f80ebf commit f42bee0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_data_handling.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ def test_get_turbine_types(self, capsys):
8888
get_turbine_types("wrong")
8989

9090
def test_store_turbine_data_from_oedb(self):
91+
t = {}
92+
for fn in os.listdir(self.orig_path):
93+
t[fn] = os.path.getmtime(os.path.join(self.orig_path, fn))
9194
store_turbine_data_from_oedb()
95+
for fn in os.listdir(self.orig_path):
96+
assert t[fn] < os.path.getmtime(os.path.join(self.orig_path, fn))
9297

9398
def test_wrong_url_load_turbine_data(self):
9499
"""Load turbine data from oedb."""

0 commit comments

Comments
 (0)