Skip to content

Commit

Permalink
Update test_run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
b-winter30 authored Apr 29, 2020
1 parent fd42469 commit 23e49f3
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,11 @@ def test_run():
f.write("218\t0.5\t0.7\n")
f.close()

# delete test.png if it already exists
try:
os.remove("test.tsv")
# catch the error if file doesn't exist
except FileNotFoundError as error:
pass
# delete test.png, we know it exists because of the function test_if_file_exists()
os.remove("test.tsv")

# delete test.png if it already exists
try:
os.remove("test.png")
# catch the error if file doesn't exist
except FileNotFoundError as error:
pass
# delete test.png, we know it exists because of the function test_if_file_exists()
os.remove("test.png")

run("test-input.tsv", "test.png", "test.tsv")
assert os.path.isfile("test.tsv") is True
Expand Down

0 comments on commit 23e49f3

Please sign in to comment.