Skip to content

Commit

Permalink
🐛 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmedmar committed Oct 10, 2018
1 parent e706a9a commit 4a8ba74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def test_main(tmpdir):
optdir = tmpdir.mkdir("opt")
bindir = tmpdir.mkdir("bin")
optexe = optdir.join("toil_disambiguate", "v0.1.2", "toil_disambiguate")
binexe = bindir.join("toil_disambiguate")
binexe_versioned = bindir.join("toil_disambiguate_v0.1.2")
binexe = bindir.join("toil_disambiguate_v0.1.2")

params = [
"--pypi_name",
Expand All @@ -39,7 +38,7 @@ def test_main(tmpdir):
if result.exit_code:
print(vars(result))

for i in optexe.strpath, binexe.strpath, binexe_versioned.strpath:
for i in optexe.strpath, binexe.strpath:
assert b"0.1.2" in subprocess.check_output(
args=[i, "--version"], env={"TMP": "/tmp"}, stderr=subprocess.STDOUT
)
Expand Down

0 comments on commit 4a8ba74

Please sign in to comment.