Commit 6d13fae4 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: Fixes to new tests

parent aa937a1b
......@@ -146,7 +146,7 @@ def gen_demo_tests(outdir=None, rundir=None):
for line in source:
if line.startswith('funpack'):
line = '{} -m '.format(sys.executable) + line
line = line.strip() + '-q -ow'
line = line.strip() + ' -q -ow'
f.write(line + '\n')
with open(op.join(outdir, out_file), 'wt') as f:
for line in output:
......
......@@ -1570,7 +1570,7 @@ def test_dupe_columns():
f.write('\t'.join(colnames) + '\n')
np.savetxt(f, data, fmt='%i', delimiter='\t')
main.main('out.csv data.txt'.split())
main.main('-rd out.csv data.txt'.split())
df = pd.read_csv('out.csv')
assert list(df.columns) == ['eid', '1-0.0', '1-0.0.1']
assert np.all(df.to_numpy() == data)
......@@ -1593,7 +1593,7 @@ def test_dupe_columns_multiple_files():
f.write('\t'.join(colnames2) + '\n')
np.savetxt(f, data2, fmt='%i', delimiter='\t')
main.main('out.csv data1.txt data2.txt'.split())
main.main('-rd out.csv data1.txt data2.txt'.split())
df = pd.read_csv('out.csv')
assert list(df.columns) == \
['eid', '1-0.0', '2-0.0', '2-0.0.1', '3-0.0']
......
Supports Markdown
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