mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Add system's requirements.txt, enforce flake8 linter
Fix style issues in functional tests.
This commit is contained in:
@@ -1,14 +1,3 @@
|
||||
"""
|
||||
Testing publishing snapshots
|
||||
"""
|
||||
|
||||
from .fs_endpoint import *
|
||||
from .drop import *
|
||||
from .show import *
|
||||
from .list import *
|
||||
from .repo import *
|
||||
from .snapshot import *
|
||||
from .switch import *
|
||||
from .update import *
|
||||
from .s3 import *
|
||||
from .swift import *
|
||||
|
||||
@@ -106,7 +106,6 @@ class FSEndpointPublishSnapshot3Test(FileSystemEndpointTest):
|
||||
self.check_is_copy('public_copy/pool/main/g/gnuplot/gnuplot-doc_4.6.1-1~maverick2_all.deb')
|
||||
|
||||
|
||||
|
||||
class FSEndpointPublishSnapshot4Test(FileSystemEndpointTest):
|
||||
"""
|
||||
publish snapshot: using copy, symlink and hardlink variants
|
||||
@@ -566,4 +565,3 @@ class FSEndpointPublishSnapshot18Test(FileSystemEndpointTest):
|
||||
]
|
||||
runCmd = "aptly publish snapshot -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=squeeze snap2 filesystem:copysize:"
|
||||
gold_processor = FileSystemEndpointTest.expand_environ
|
||||
|
||||
|
||||
@@ -567,7 +567,9 @@ class PublishRepo23Test(BaseTest):
|
||||
]
|
||||
runCmd = "aptly publish repo -component=main,contrib repo1"
|
||||
expectedCode = 2
|
||||
outputMatchPrepare = lambda _, s: "\n".join([l for l in s.split("\n") if l.startswith("ERROR")])
|
||||
|
||||
def outputMatchPrepare(_, s):
|
||||
return "\n".join([l for l in s.split("\n") if l.startswith("ERROR")])
|
||||
|
||||
|
||||
class PublishRepo24Test(BaseTest):
|
||||
@@ -616,7 +618,9 @@ class PublishRepo26Test(BaseTest):
|
||||
]
|
||||
runCmd = "aptly publish repo -keyring=${files}/aptly_passphrase.pub -secret-keyring=${files}/aptly_passphrase.sec -passphrase=verysecret -distribution=maverick local-repo"
|
||||
gold_processor = BaseTest.expand_environ
|
||||
outputMatchPrepare = lambda _, s: s.replace("gpg: gpg-agent is not available in this session\n", "")
|
||||
|
||||
def outputMatchPrepare(_, s):
|
||||
return s.replace("gpg: gpg-agent is not available in this session\n", "")
|
||||
|
||||
def check(self):
|
||||
super(PublishRepo26Test, self).check()
|
||||
|
||||
@@ -833,7 +833,9 @@ class PublishSnapshot32Test(BaseTest):
|
||||
]
|
||||
runCmd = "aptly publish snapshot -component=main,contrib snap32.1"
|
||||
expectedCode = 2
|
||||
outputMatchPrepare = lambda _, s: "\n".join([l for l in s.split("\n") if l.startswith("ERROR")])
|
||||
|
||||
def outputMatchPrepare(_, s):
|
||||
return "\n".join([l for l in s.split("\n") if l.startswith("ERROR")])
|
||||
|
||||
|
||||
class PublishSnapshot33Test(BaseTest):
|
||||
|
||||
@@ -369,7 +369,9 @@ class PublishSwitch9Test(BaseTest):
|
||||
]
|
||||
runCmd = "aptly publish switch -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -component=a,b maverick snap2"
|
||||
expectedCode = 2
|
||||
outputMatchPrepare = lambda _, s: "\n".join([l for l in s.split("\n") if l.startswith("ERROR")])
|
||||
|
||||
def outputMatchPrepare(_, s):
|
||||
return "\n".join([l for l in s.split("\n") if l.startswith("ERROR")])
|
||||
|
||||
|
||||
class PublishSwitch10Test(BaseTest):
|
||||
|
||||
Reference in New Issue
Block a user