Commit 3de8eeda authored by juga's avatar juga
Browse files

Change the path of the v3bw files to a dir too

It does not change functionality right now, but probably needed
for future tests
parent b94f7ae0
...@@ -125,7 +125,8 @@ def test_v3bwheader_from_file(datadir): ...@@ -125,7 +125,8 @@ def test_v3bwheader_from_file(datadir):
file_created=file_created, file_created=file_created,
generator_started=generator_started, generator_started=generator_started,
earliest_bandwidth=earliest_bandwidth) earliest_bandwidth=earliest_bandwidth)
text ='v3bw.txt') # at some point this should be read from conftest
text ='v3bw/20180425_131057.v3bw')
h, _ = V3BwHeader.from_text_v110(text) h, _ = V3BwHeader.from_text_v110(text)
assert str(h) == str(header) assert str(h) == str(header)
...@@ -156,7 +157,8 @@ def test_v3bwline_from_results_file(datadir): ...@@ -156,7 +157,8 @@ def test_v3bwline_from_results_file(datadir):
def test_v3bwfile(datadir, tmpdir): def test_v3bwfile(datadir, tmpdir):
"""Test generate v3bw file (including relay_lines).""" """Test generate v3bw file (including relay_lines)."""
v3bw ='v3bw.txt') # at some point this should be obtained from conftest
v3bw ='v3bw/20180425_131057.v3bw')
results = load_result_file(str(datadir.join("results.txt"))) results = load_result_file(str(datadir.join("results.txt")))
header = V3BwHeader(timestamp_l, header = V3BwHeader(timestamp_l,
file_created=file_created, file_created=file_created,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment