mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-11 10:34:30 +08:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user