Add system's requirements.txt, enforce flake8 linter

Fix style issues in functional tests.
This commit is contained in:
Andrey Smirnov
2017-04-27 18:58:15 +03:00
parent 7a7b981d4f
commit c798db8056
44 changed files with 334 additions and 260 deletions
-11
View File
@@ -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 *
-2
View File
@@ -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
+6 -2
View File
@@ -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()
+3 -1
View File
@@ -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):
+3 -1
View File
@@ -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):