Skip to content

Commit

Permalink
Sometimes you need comments to accepted SO answers
Browse files Browse the repository at this point in the history
  • Loading branch information
Molkree committed Jul 27, 2021
1 parent 1e19897 commit acba48a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_ooi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Unit tests for OOI workflow"""
import datetime
import os.path
import os
from os import path

import pytest

Expand Down Expand Up @@ -34,5 +35,9 @@ def test_ooi_spectrograms(
segment_length = datetime.timedelta(minutes=segment_length_float)
save_ooi_spectrograms(start_time, end_time, segment_length, node, output_dir)
assert expected_files_count == len(
[name for name in os.listdir(output_dir) if os.path.isfile(name)]
[
name
for name in os.listdir(output_dir)
if path.isfile(path.join(output_dir, name))
]
)

0 comments on commit acba48a

Please sign in to comment.