Fix the test suite.

We had some circular imports that caused the tests (and more?) to fail.

I ran into this when looking at the tests for #583 and #595.
This commit is contained in:
Ralph Bean
2017-07-06 21:02:32 -04:00
parent 3e819abcb6
commit a755104bd4
6 changed files with 16 additions and 19 deletions

View File

@@ -38,9 +38,11 @@ import module_build_service.scheduler
import module_build_service.scheduler.consumer
from base import GenericBuilder
from utils import (fake_repo_done_message,
create_local_repo_from_koji_tag, execute_cmd,
find_srpm)
from utils import (
create_local_repo_from_koji_tag,
execute_cmd,
find_srpm,
)
from KojiModuleBuilder import KojiModuleBuilder
from module_build_service.models import ModuleBuild
@@ -280,6 +282,7 @@ mdpolicy=group:primary
self.groups.append("module-build-macros")
self._write_mock_config()
from module_build_service.scheduler.consumer import fake_repo_done_message
fake_repo_done_message(self.tag_name)
def tag_artifacts(self, artifacts):