def test_search_missing_argument(script):
 result = script.pip('search', expect_error=True)
 assert ('ERROR: Missing required argument (search query).' in result.stderr)

def test_search_missing_argument ( script ) : result = script . pip ( 'search' , expect_error = True ) assert ( 'ERROR: Missing required argument (search query).' in result . stderr )
test missing required argument for search .