mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-01 04:40:38 +00:00
Fix tests on aptly mirror edit. #63
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import re
|
||||||
from lib import BaseTest
|
from lib import BaseTest
|
||||||
|
|
||||||
|
|
||||||
@@ -10,7 +11,7 @@ class EditMirror1Test(BaseTest):
|
|||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
self.check_output()
|
self.check_output()
|
||||||
self.check_cmd_output("aptly mirror show wheezy-main", "mirror_show")
|
self.check_cmd_output("aptly mirror show wheezy-main", "mirror_show", match_prepare=lambda s: re.sub(r"Last update: [0-9:+A-Za-z -]+\n", "", s))
|
||||||
|
|
||||||
|
|
||||||
class EditMirror2Test(BaseTest):
|
class EditMirror2Test(BaseTest):
|
||||||
@@ -30,7 +31,7 @@ class EditMirror3Test(BaseTest):
|
|||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
self.check_output()
|
self.check_output()
|
||||||
self.check_cmd_output("aptly mirror show wheezy-main", "mirror_show")
|
self.check_cmd_output("aptly mirror show wheezy-main", "mirror_show", match_prepare=lambda s: re.sub(r"Last update: [0-9:+A-Za-z -]+\n", "", s))
|
||||||
|
|
||||||
|
|
||||||
class EditMirror4Test(BaseTest):
|
class EditMirror4Test(BaseTest):
|
||||||
|
|||||||
Reference in New Issue
Block a user