Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nipap-cli/tests/cli-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import unittest

import sys
sys.path.insert(0, '..')
sys.path.insert(0, os.path.join(os.path.dirname(__file__) ,'..')
from nipap_cli import nipap_cli
from nipap_cli.command import Command, CommandError, InvalidCommand

Expand All @@ -33,7 +33,7 @@ def complete_a_option1(arg):

match = []
for straw in [ 'FOO', 'FOD', 'BAR' ]:
if straw.find(arg) == 0:
if straw.startswith(arg):
match.append(straw)

return match
Expand Down