mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
53 lines
855 B
Python
53 lines
855 B
Python
"""
|
|
Test help screens
|
|
"""
|
|
|
|
import re
|
|
from lib import BaseTest
|
|
|
|
|
|
class MainTest(BaseTest):
|
|
"""
|
|
main
|
|
"""
|
|
runCmd = "aptly"
|
|
|
|
outputMatchPrepare = lambda _, s: re.sub(r' -(cpuprofile|memprofile|memstats|meminterval)=.*\n', '', s, flags=re.MULTILINE)
|
|
|
|
|
|
class MirrorTest(BaseTest):
|
|
"""
|
|
main
|
|
"""
|
|
runCmd = "aptly mirror"
|
|
|
|
|
|
class MirrorCreateTest(BaseTest):
|
|
"""
|
|
main
|
|
"""
|
|
runCmd = "aptly mirror create"
|
|
|
|
|
|
class MainHelpTest(BaseTest):
|
|
"""
|
|
main
|
|
"""
|
|
runCmd = "aptly help"
|
|
|
|
outputMatchPrepare = lambda _, s: re.sub(r' -(cpuprofile|memprofile|memstats|meminterval)=.*\n', '', s, flags=re.MULTILINE)
|
|
|
|
|
|
class MirrorHelpTest(BaseTest):
|
|
"""
|
|
main
|
|
"""
|
|
runCmd = "aptly help mirror"
|
|
|
|
|
|
class MirrorCreateHelpTest(BaseTest):
|
|
"""
|
|
main
|
|
"""
|
|
runCmd = "aptly help mirror create"
|