Skip to content

Commit f518cf1

Browse files
committed
Tests should now assert on Product from execution.build
after latest changes in Kiwi TCMS, see: kiwitcms/Kiwi@48a33a7 kiwitcms/Kiwi#3439
1 parent 17f4684 commit f518cf1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

trackers_integration/tests/test_mantis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _fixture_setup(self):
2626
self.execution_1.run.save()
2727

2828
self.component = ComponentFactory(
29-
name="Mantis integration", product=self.execution_1.run.plan.product
29+
name="Mantis integration", product=self.execution_1.build.version.product
3030
)
3131
self.execution_1.case.add_component(self.component)
3232

@@ -143,7 +143,7 @@ def test_report_issue_from_test_execution_1click_works(self):
143143
for expected_string in [
144144
f"Filed from execution {self.execution_1.get_full_url()}",
145145
"Reporter",
146-
self.execution_1.run.plan.product.name,
146+
self.execution_1.build.version.product.name,
147147
self.component.name,
148148
"Steps to reproduce",
149149
self.execution_1.case.text,

trackers_integration/tests/test_openproject.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2023 Alexander Todorov <[email protected]>
1+
# Copyright (c) 2022-2024 Alexander Todorov <[email protected]>
22
#
33
# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt
44
#
@@ -37,7 +37,7 @@ def _fixture_setup(self):
3737
self.execution_1.run.save()
3838

3939
self.component = ComponentFactory(
40-
name="OpenProject integration", product=self.execution_1.run.plan.product
40+
name="OpenProject integration", product=self.execution_1.build.version.product
4141
)
4242
self.execution_1.case.add_component(self.component)
4343

@@ -120,7 +120,7 @@ def test_report_issue_from_test_execution_1click_works(self):
120120
for expected_string in [
121121
f"Filed from execution {self.execution_1.get_full_url()}",
122122
"Reporter",
123-
self.execution_1.run.plan.product.name,
123+
self.execution_1.build.version.product.name,
124124
self.component.name,
125125
"Steps to reproduce",
126126
self.execution_1.case.text,
@@ -177,11 +177,11 @@ def _fixture_setup(self):
177177
self.execution_1.run.save()
178178

179179
# 'kiwitcms-bot' user is authorized only for this project
180-
self.execution_1.run.plan.product.name = "Demo project"
181-
self.execution_1.run.plan.product.save()
180+
self.execution_1.build.version.product.name = "Demo project"
181+
self.execution_1.build.version.product.save()
182182

183183
self.component = ComponentFactory(
184-
name="OpenProject integration", product=self.execution_1.run.plan.product
184+
name="OpenProject integration", product=self.execution_1.build.version.product
185185
)
186186
self.execution_1.case.add_component(self.component)
187187

@@ -263,7 +263,7 @@ def test_report_issue_from_test_execution_1click_works(self):
263263
for expected_string in [
264264
f"Filed from execution {self.execution_1.get_full_url()}",
265265
"Reporter",
266-
self.execution_1.run.plan.product.name,
266+
self.execution_1.build.version.product.name,
267267
self.component.name,
268268
"Steps to reproduce",
269269
self.execution_1.case.text,

0 commit comments

Comments
 (0)