Skip to content

Commit

Permalink
Use pypi query list to support multiple cli searches Issue #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Nasrat authored and jezdez committed Apr 16, 2011
1 parent e64b8e8 commit 1691ee3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pip/commands/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def run(self, options, args):
if not args:
logger.warn('ERROR: Missing required argument (search query).')
return
query = ' '.join(args)
query = args
index_url = options.index

pypi_hits = self.search(query, index_url)
Expand Down
11 changes: 11 additions & 0 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ def test_search():
assert 'pip installs packages' in output.stdout


def test_multiple_search():
"""
End to end test of search command.
"""
reset_env()
output = run_pip('search', 'pip', 'virtualenv')
assert 'pip installs packages' in output.stdout
assert 'Virtual Python Environment builder' in output.stdout


def test_searching_through_Search_class():
"""
Verify if ``pip.vcs.Search`` uses tests xmlrpclib.Transport class
Expand Down

0 comments on commit 1691ee3

Please sign in to comment.