Skip to content

Commit 5aaf192

Browse files
committed
Mock get_build_json for unit tests only
Signed-off-by: Ben Alkov <[email protected]>
1 parent 060c877 commit 5aaf192

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

atomic_reactor/plugins/build_orchestrate_build.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from atomic_reactor.inner import BuildResult
2222
from atomic_reactor.plugin import BuildStepPlugin
23-
from atomic_reactor.util import (df_parser, get_build_json, get_manifest_list,
23+
from atomic_reactor.util import (df_parser, get_manifest_list,
2424
get_platforms, map_to_user_params)
2525
from atomic_reactor.utils.koji import generate_koji_upload_dir
2626
from atomic_reactor.constants import (PLUGIN_ADD_FILESYSTEM_KEY, PLUGIN_BUILD_ORCHESTRATE_KEY)
@@ -41,6 +41,14 @@
4141
MAX_CLUSTER_FAILS = 20
4242

4343

44+
def get_build_json():
45+
"""
46+
FOR MOCKING ONLY
47+
This only exists to allow OSBS2 unit tests to pass
48+
"""
49+
return {}
50+
51+
4452
def get_worker_build_info(workflow, platform):
4553
"""
4654
Obtain worker build information for a given platform

0 commit comments

Comments
 (0)