|
1 |
| -# Copyright (c) 2022-2023 Alexander Todorov <[email protected]> |
| 1 | +# Copyright (c) 2022-2024 Alexander Todorov <[email protected]> |
2 | 2 | #
|
3 | 3 | # Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt
|
4 | 4 | #
|
@@ -37,7 +37,7 @@ def _fixture_setup(self):
|
37 | 37 | self.execution_1.run.save()
|
38 | 38 |
|
39 | 39 | 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 |
41 | 41 | )
|
42 | 42 | self.execution_1.case.add_component(self.component)
|
43 | 43 |
|
@@ -120,7 +120,7 @@ def test_report_issue_from_test_execution_1click_works(self):
|
120 | 120 | for expected_string in [
|
121 | 121 | f"Filed from execution {self.execution_1.get_full_url()}",
|
122 | 122 | "Reporter",
|
123 |
| - self.execution_1.run.plan.product.name, |
| 123 | + self.execution_1.build.version.product.name, |
124 | 124 | self.component.name,
|
125 | 125 | "Steps to reproduce",
|
126 | 126 | self.execution_1.case.text,
|
@@ -177,11 +177,11 @@ def _fixture_setup(self):
|
177 | 177 | self.execution_1.run.save()
|
178 | 178 |
|
179 | 179 | # '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() |
182 | 182 |
|
183 | 183 | 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 |
185 | 185 | )
|
186 | 186 | self.execution_1.case.add_component(self.component)
|
187 | 187 |
|
@@ -263,7 +263,7 @@ def test_report_issue_from_test_execution_1click_works(self):
|
263 | 263 | for expected_string in [
|
264 | 264 | f"Filed from execution {self.execution_1.get_full_url()}",
|
265 | 265 | "Reporter",
|
266 |
| - self.execution_1.run.plan.product.name, |
| 266 | + self.execution_1.build.version.product.name, |
267 | 267 | self.component.name,
|
268 | 268 | "Steps to reproduce",
|
269 | 269 | self.execution_1.case.text,
|
|
0 commit comments