Skip to content

Commit

Permalink
Fix the tests after the job rename
Browse files Browse the repository at this point in the history
Signed-off-by: Frantisek Lachman <[email protected]>
  • Loading branch information
lachmanfrantisek committed Oct 11, 2022
1 parent 6ee8023 commit cfe8432
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_check_rerun.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def check_rerun_event_koji_build():
event = json.loads(
(DATA_DIR / "webhooks" / "github" / "checkrun_rerequested.json").read_text()
)
event["check_run"]["name"] = "production-build:f34"
event["check_run"]["name"] = "koji-build:f34"
return event


Expand Down Expand Up @@ -650,7 +650,7 @@ def test_check_rerun_release_copr_build_handler(
[
{
"trigger": "release",
"job": "production_build",
"job": "upstream_koji_build",
"metadata": {"targets": "fedora-all", "scratch": "true"},
}
]
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_precheck_koji_build_non_scratch(github_pr_event):
flexmock(StatusReporterGithubChecks).should_receive("set_status").with_args(
state=BaseCommitStatus.neutral,
description="Non-scratch builds not possible from upstream.",
check_name="production-build:bright-future",
check_name="koji-build:bright-future",
url=KOJI_PRODUCTION_BUILDS_ISSUE,
links_to_external_services=None,
markdown_content=None,
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test_koji_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def build_helper(
jobs = jobs or []
jobs.append(
JobConfig(
type=JobType.production_build,
type=JobType.upstream_koji_build,
trigger=trigger or JobConfigTriggerType.pull_request,
_targets=_targets,
owner=owner,
Expand Down Expand Up @@ -122,15 +122,15 @@ def test_koji_build_check_names(github_pr_event):
flexmock(StatusReporter).should_receive("set_status").with_args(
state=BaseCommitStatus.running,
description="Building SRPM ...",
check_name="production-build:bright-future",
check_name="koji-build:bright-future",
url="",
links_to_external_services=None,
markdown_content=None,
).and_return()
flexmock(StatusReporter).should_receive("set_status").with_args(
state=BaseCommitStatus.running,
description="Building RPM ...",
check_name="production-build:bright-future",
check_name="koji-build:bright-future",
url=koji_build_url,
links_to_external_services=None,
markdown_content=None,
Expand Down

0 comments on commit cfe8432

Please sign in to comment.