-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Towards finishing support for mth5 file_version 0.2.0
- Changed call to read_back_data to pass survey kwarg - tested build and readback of CAS04 with mth5 file_version="0.2.0" - added some extra lines to synthetic test to make codecov happier - added test for general_helper_functions - moved some tests into tests/time_series/ [Issue(s): #200]
- Loading branch information
Showing
5 changed files
with
40 additions
and
7 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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import pathlib | ||
|
||
from aurora.general_helper_functions import count_lines | ||
from aurora.general_helper_functions import TEST_PATH | ||
|
||
|
||
def test_count_lines(): | ||
tmp_file = TEST_PATH.joinpath("tmp.txt") | ||
n_lines_in = 42 | ||
lines = n_lines_in * ["test\n"] | ||
f = open(tmp_file, "w") | ||
f.writelines(lines) | ||
f.close() | ||
n_lines_out = count_lines(tmp_file) | ||
assert n_lines_out == n_lines_in | ||
tmp_file.unlink() | ||
return | ||
|
||
|
||
def test(): | ||
""" """ | ||
test_count_lines() | ||
print("finito") | ||
|
||
|
||
if __name__ == "__main__": | ||
test() |
File renamed without changes.
File renamed without changes.