mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Sort package lists when searching or showing objects
Fixes #135 Fixes #214
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
from lib import BaseTest
|
||||
|
||||
|
||||
def sortLines(_, s):
|
||||
return "\n".join(sorted(s.split("\n")))
|
||||
|
||||
|
||||
class SearchMirror1Test(BaseTest):
|
||||
"""
|
||||
search mirror: regular search
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = sortLines
|
||||
runCmd = "aptly mirror search wheezy-main '$$Architecture (i386), Name (% *-dev)'"
|
||||
|
||||
|
||||
@@ -36,7 +31,6 @@ class SearchMirror4Test(BaseTest):
|
||||
search mirror: with-deps search
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = sortLines
|
||||
runCmd = "aptly mirror search -with-deps wheezy-main 'Name (nginx)'"
|
||||
|
||||
|
||||
@@ -45,7 +39,6 @@ class SearchMirror5Test(BaseTest):
|
||||
search mirror: regular search
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = sortLines
|
||||
runCmd = "aptly mirror search -format='{{.Package}}#{{.Version}}' wheezy-main '$$Architecture (i386), Name (% *-dev)'"
|
||||
|
||||
|
||||
@@ -54,5 +47,4 @@ class SearchMirror6Test(BaseTest):
|
||||
search mirror: no query
|
||||
"""
|
||||
fixtureDB = True
|
||||
outputMatchPrepare = sortLines
|
||||
runCmd = "aptly mirror search -format='{{.Package}}#{{.Version}}' wheezy-main"
|
||||
|
||||
Reference in New Issue
Block a user