From c362616896b77eff042570a54bcf9a275d1271f1 Mon Sep 17 00:00:00 2001 From: PARTHDESHMUKH2005 Date: Sat, 31 Jan 2026 23:19:16 +0530 Subject: [PATCH] Update cli-test.py --- nipap-cli/tests/cli-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nipap-cli/tests/cli-test.py b/nipap-cli/tests/cli-test.py index b968c1c4e..27a7f77c1 100755 --- a/nipap-cli/tests/cli-test.py +++ b/nipap-cli/tests/cli-test.py @@ -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 @@ -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