Skip to content

Commit bc135e5

Browse files
committed
Fix tests
Signed-off-by: Nikola Forró <nforro@redhat.com> Assisted-by: Claude Opus 4.6 via Claude Code
1 parent 0cd3089 commit bc135e5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/integration/test_logdetective_koji.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def test_logdetective_koji_build_scratch_downstream(
7777
flexmock(KojiBuildTargetModel).should_receive("get_by_task_id").and_return(
7878
koji_build_pr_downstream
7979
)
80+
flexmock(KojiBuildTargetModel).should_receive("has_newer_run").and_return(False)
8081

8182
koji_build_pr_downstream.should_receive("set_build_start_time").once()
8283
koji_build_pr_downstream.should_receive("set_build_finished_time").once()
@@ -186,6 +187,7 @@ def test_logdetective_skipped_when_project_disabled(
186187
flexmock(KojiBuildTargetModel).should_receive("get_by_task_id").and_return(
187188
koji_build_pr_downstream
188189
)
190+
flexmock(KojiBuildTargetModel).should_receive("has_newer_run").and_return(False)
189191

190192
koji_build_pr_downstream.should_receive("set_build_start_time").once()
191193
koji_build_pr_downstream.should_receive("set_build_finished_time").once()

tests/unit/test_testing_farm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,7 @@ def test_get_request_details():
16381638
],
16391639
)
16401640
def test_trigger_build(copr_build, wait_for_build):
1641+
urls.DASHBOARD_URL = "https://dashboard.localhost"
16411642
valid_commit_sha = "1111111111111111111111111111111111111111"
16421643

16431644
package_config = PackageConfig(packages={"package": CommonPackageConfig()})
@@ -1720,6 +1721,7 @@ def test_trigger_build(copr_build, wait_for_build):
17201721

17211722

17221723
def test_trigger_build_manual_tests_dont_report():
1724+
urls.DASHBOARD_URL = "https://dashboard.localhost"
17231725
copr_build = flexmock(
17241726
id=1,
17251727
commit_sha="1111111111111111111111111111111111111111",

0 commit comments

Comments
 (0)