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

@@ -8,7 +8,6 @@ import logging
import urlgrabber.grabber as grabber
import urlgrabber.progress as progress
import module_build_service
import module_build_service.scheduler
from module_build_service import log, scm, messaging
@@ -50,14 +49,6 @@ def execute_cmd(args, stdout=None, stderr=None, cwd=None):
return out, err
def fake_repo_done_message(tag_name):
msg = module_build_service.messaging.KojiRepoChange(
msg_id='a faked internal message',
repo_tag=tag_name + "-build",
)
module_build_service.scheduler.consumer.work_queue_put(msg)
def create_local_repo_from_koji_tag(config, tag, repo_dir, archs=None):
"""
Downloads the packages build for one of `archs` (defaults to ['x86_64',