Commit 934bf409 authored by Bruce Flynn's avatar Bruce Flynn

fix: hard-coded path in cli tests

parent ab84e520
Pipeline #1372 passed with stage
in 1 minute and 28 seconds
......@@ -52,7 +52,7 @@ Lat: 76.15S Lon: 168.40E Elev: 262m
def test_file_insert_q1h(database, q1h_file):
script = './env/bin/python -m amrc_aws.cli.file_insert -v {}'.format(q1h_file)
script = 'python -m amrc_aws.cli.file_insert -v {}'.format(q1h_file)
check_call(script, shell=True)
with db.connection() as conn:
......@@ -78,7 +78,7 @@ Lat : 82.32S Long : 75.99E Elev : 4027 M
def test_file_insert_rdr(database, rdr_file):
script = './env/bin/python -m amrc_aws.cli.file_insert -v {}'.format(rdr_file)
script = 'python -m amrc_aws.cli.file_insert -v {}'.format(rdr_file)
check_call(script, shell=True)
with db.connection() as conn:
......@@ -87,10 +87,10 @@ def test_file_insert_rdr(database, rdr_file):
def test_file_insert_skips_duplicates(database, rdr_file):
script = './env/bin/python -m amrc_aws.cli.file_insert -v {}'.format(rdr_file)
script = 'python -m amrc_aws.cli.file_insert -v {}'.format(rdr_file)
check_call(script, shell=True)
script = './env/bin/python -m amrc_aws.cli.file_insert -v {}'.format(rdr_file)
script = 'python -m amrc_aws.cli.file_insert -v {}'.format(rdr_file)
check_call(script, shell=True)
with db.connection() as conn:
......@@ -99,7 +99,7 @@ def test_file_insert_skips_duplicates(database, rdr_file):
def test_batch_insert(database, rdr_file, tmpdir):
script = './env/bin/python -m amrc_aws.cli.batch_insert -v -'
script = 'python -m amrc_aws.cli.batch_insert -v -'
fptr = tmpdir.join('files.txt')
fptr.write(rdr_file + '\n')
check_call(script, shell=True, stdin=open(fptr.strpath))
......
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