Skip to content

Commit e032e4c

Browse files
committed
fix file paths. hopefully.
1 parent 9c9b6e1 commit e032e4c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_jqlcomposer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
def test_jqlcomposer_main_asfile():
77
for i in range(len(TEST_TERMS)):
88
idx = i+1
9-
with open(f"testout{idx}.txt", "w") as outfile:
10-
subprocess.run(["python", "src/jqlcomposer.py", TEST_TERMS[i], "--filename", f"test{idx}.json"], stdout=outfile)
11-
assert 0 == filecmp.cmp(f"testout{idx}.txt", f"expect{idx}.txt")
9+
with open(f"tests/testout{idx}.txt", "w") as outfile:
10+
subprocess.run(["python", "src/jqlcomposer.py", TEST_TERMS[i], "--filename", f"tests/test{idx}.json"], stdout=outfile)
11+
assert 0 == filecmp.cmp(f"tests/testout{idx}.txt", f"tests/expect{idx}.txt")
1212

1313
def test_jqlcomposer_main_astext():
1414
for i in range(len(TEST_TERMS)):
1515
idx = i+1
1616
json_contents = ""
17-
with open(f"test{idx}.json", "r") as infile:
17+
with open(f"tests/test{idx}.json", "r") as infile:
1818
json_contents = infile.read()
19-
with open(f"testout{idx}.txt", "w") as outfile:
19+
with open(f"tests/testout{idx}.txt", "w") as outfile:
2020
subprocess.run(["python", "src/jqlcomposer.py", TEST_TERMS[i], f'"{json_contents}"'], stdout=outfile)
21-
assert 0 == filecmp.cmp(f"testout{idx}.txt", f"expect{idx}.txt")
21+
assert 0 == filecmp.cmp(f"tests/testout{idx}.txt", f"tests/expect{idx}.txt")
2222

0 commit comments

Comments
 (0)