DescriptionRefactors search and adds some tests.
Search views have been moved to their own view file.
The actual search machinery has been moved into its own method, do_search, as
it did essentially the same thing in both views.
Tests are added using a mock for do_search and a result fake for the result
type the search should return.
https://code.launchpad.net/~jcsackett/charmworld/search-refactor/+merge/143182
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 6
Patch Set 2 : Refactors search and adds some tests. #Patch Set 3 : Refactors search and adds some tests. #
MessagesTotal messages: 6
|