Add system's requirements.txt, enforce flake8 linter

Fix style issues in functional tests.
This commit is contained in:
Andrey Smirnov committed 2017-04-28 00:05:11 +03:00
1 parent 7a7b981d4f
commit c798db8056
44 files changed
+334 -260

No files matched your search

+3 -3
View File
@@ -1,13 +1,14 @@
import os
from lib import BaseTest
class FileSystemEndpointTest(BaseTest):
"""
BaseTest + support for filesystem endpoints
"""
def prepare(self):
self.configOverride = { "FileSystemPublishEndpoints": {
self.configOverride = {"FileSystemPublishEndpoints": {
"symlink": {
"rootDir": os.path.join(os.environ["HOME"], ".aptly", "public_symlink"),
"linkMethod": "symlink"
@@ -29,7 +30,6 @@ class FileSystemEndpointTest(BaseTest):
}}
super(FileSystemEndpointTest, self).prepare()
def check_is_regular(self, path):
if not os.path.isfile(os.path.join(os.environ["HOME"], ".aptly", path)):
raise Exception("path %s is not a regular file" % (path, ))
@@ -44,5 +44,5 @@ class FileSystemEndpointTest(BaseTest):
def check_is_copy(self, path):
fullpath = os.path.join(os.environ["HOME"], ".aptly", path)
if not ( os.path.isfile(fullpath) and not self.check_is_hardlink(path) ):
if not (os.path.isfile(fullpath) and not self.check_is_hardlink(path)):
raise Exception("path %s is not a copy" % (path, ))