Skip to content

Commit

Permalink
Patch manpage test (PR #192)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Jul 8, 2023
1 parent 1ab2168 commit 30796f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_bcoin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import bidscoin
from bidscoin import bcoin
from pathlib import Path
Expand Down Expand Up @@ -30,7 +31,7 @@ def test_list_executables():
assert 'deface' in executables
for executable in executables:
assert bcoin.run_command(f"{executable} -h") == 0
manpage = Path(f"path_to_man/man1/{executable}.1").read_text()
manpage = (Path(sys.executable).parents[1]/'share'/'man'/'man1'/f"{executable}.1").read_text()
assert executable in manpage


Expand Down

0 comments on commit 30796f2

Please sign in to comment.