This commit is contained in:
Joseph Schorr 2017-07-11 15:33:48 +03:00
parent 8ba71f7a45
commit c7f1944bd5
2 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,7 @@ class Build(namedtuple('Build', ['uuid', 'logs_archived'])):
Build represents a single build in the build system.
"""
@add_metaclass(ABCMeta)
class BuildLogsArchiverWorkerDataInterface(object):
"""
@ -34,4 +35,4 @@ class BuildLogsArchiverWorkerDataInterface(object):
@abstractmethod
def create_build_for_testing(self):
""" Creates an unarchived build for testing of archiving. """
pass
pass

View file

@ -1,6 +1,7 @@
from data import model
from workers.buildlogsarchiver.models_interface import Build, BuildLogsArchiverWorkerDataInterface
class PreOCIModel(BuildLogsArchiverWorkerDataInterface):
def get_archivable_build(self):
build = model.build.get_archivable_build()
@ -27,4 +28,5 @@ class PreOCIModel(BuildLogsArchiverWorkerDataInterface):
return Build(build.uuid, build.logs_archived)
pre_oci_model = PreOCIModel()