mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 02:21:00 +08:00
Fix flake8 errors made by jkaluza
This commit is contained in:
@@ -9,7 +9,7 @@ import kobo.rpmlib
|
||||
from module_build_service import conf
|
||||
from module_build_service.models import ModuleBuild, ComponentBuild, make_session
|
||||
from module_build_service.builder.MockModuleBuilder import MockModuleBuilder
|
||||
from tests import init_data, clean_database
|
||||
from tests import clean_database
|
||||
|
||||
|
||||
class TestMockModuleBuilder:
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
import pytest
|
||||
from mock import patch
|
||||
from module_build_service import models, conf
|
||||
from tests import reuse_component_init_data, init_data, db, clean_database
|
||||
from tests import reuse_component_init_data, db, clean_database
|
||||
import mock
|
||||
import koji
|
||||
from module_build_service.scheduler.producer import MBSProducer
|
||||
|
||||
@@ -29,9 +29,8 @@ import module_build_service.utils
|
||||
import module_build_service.scm
|
||||
from module_build_service import models, conf
|
||||
from module_build_service.errors import ProgrammingError, ValidationError, UnprocessableEntity
|
||||
from tests import (reuse_component_init_data, init_data, db,
|
||||
reuse_shared_userspace_init_data,
|
||||
clean_database)
|
||||
from tests import (
|
||||
reuse_component_init_data, db, reuse_shared_userspace_init_data, clean_database)
|
||||
import mock
|
||||
import koji
|
||||
import pytest
|
||||
@@ -75,6 +74,7 @@ class FakeSCM(object):
|
||||
def get_module_yaml(self):
|
||||
return path.join(self.sourcedir, self.name + ".yaml")
|
||||
|
||||
|
||||
class TestUtilsComponentReuse:
|
||||
|
||||
def setup_method(self, test_method):
|
||||
|
||||
@@ -254,7 +254,8 @@ class TestViews:
|
||||
"state": 1,
|
||||
"stream": "4.3.43",
|
||||
"time_submitted": "2016-09-03T12:38:33Z",
|
||||
"scmurl": "git://pkgs.domain.local/modules/testmodule?#ca95886c7a443b36a9ce31abda1f9bef22f2f8c9",
|
||||
"scmurl": ("git://pkgs.domain.local/modules/testmodule"
|
||||
"?#ca95886c7a443b36a9ce31abda1f9bef22f2f8c9"),
|
||||
"id": 6,
|
||||
"context": "00000000",
|
||||
"time_completed": None,
|
||||
@@ -287,7 +288,8 @@ class TestViews:
|
||||
"state": 3,
|
||||
"stream": "1",
|
||||
"time_submitted": "2016-09-03T12:35:33Z",
|
||||
"scmurl": "git://pkgs.domain.local/modules/postgressql?#aa95886c7a443b36a9ce31abda1f9bef22f2f8c9",
|
||||
"scmurl": ("git://pkgs.domain.local/modules/postgressql"
|
||||
"?#aa95886c7a443b36a9ce31abda1f9bef22f2f8c9"),
|
||||
"id": 5,
|
||||
"context": "00000000",
|
||||
"time_completed": "2016-09-03T11:37:19Z",
|
||||
|
||||
Reference in New Issue
Block a user