diff options
Diffstat (limited to 'bitbake/lib/toaster/tests')
-rw-r--r-- | bitbake/lib/toaster/tests/browser/test_all_builds_page.py | 8 | ||||
-rw-r--r-- | bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_all_builds_page.py b/bitbake/lib/toaster/tests/browser/test_all_builds_page.py index 228a62be7d..bfd8f3a439 100644 --- a/bitbake/lib/toaster/tests/browser/test_all_builds_page.py +++ b/bitbake/lib/toaster/tests/browser/test_all_builds_page.py | |||
@@ -259,25 +259,25 @@ class TestAllBuildsPage(SeleniumTestCase): | |||
259 | element = self._get_build_time_element(build1) | 259 | element = self._get_build_time_element(build1) |
260 | links = element.find_elements(By.CSS_SELECTOR, 'a') | 260 | links = element.find_elements(By.CSS_SELECTOR, 'a') |
261 | msg = 'should be a link on the build time for a successful recent build' | 261 | msg = 'should be a link on the build time for a successful recent build' |
262 | self.assertEquals(len(links), 1, msg) | 262 | self.assertEqual(len(links), 1, msg) |
263 | 263 | ||
264 | # test recent builds area for failed build | 264 | # test recent builds area for failed build |
265 | element = self._get_build_time_element(build2) | 265 | element = self._get_build_time_element(build2) |
266 | links = element.find_elements(By.CSS_SELECTOR, 'a') | 266 | links = element.find_elements(By.CSS_SELECTOR, 'a') |
267 | msg = 'should not be a link on the build time for a failed recent build' | 267 | msg = 'should not be a link on the build time for a failed recent build' |
268 | self.assertEquals(len(links), 0, msg) | 268 | self.assertEqual(len(links), 0, msg) |
269 | 269 | ||
270 | # test the time column for successful build | 270 | # test the time column for successful build |
271 | build1_row = self._get_row_for_build(build1) | 271 | build1_row = self._get_row_for_build(build1) |
272 | links = build1_row.find_elements(By.CSS_SELECTOR, 'td.time a') | 272 | links = build1_row.find_elements(By.CSS_SELECTOR, 'td.time a') |
273 | msg = 'should be a link on the build time for a successful build' | 273 | msg = 'should be a link on the build time for a successful build' |
274 | self.assertEquals(len(links), 1, msg) | 274 | self.assertEqual(len(links), 1, msg) |
275 | 275 | ||
276 | # test the time column for failed build | 276 | # test the time column for failed build |
277 | build2_row = self._get_row_for_build(build2) | 277 | build2_row = self._get_row_for_build(build2) |
278 | links = build2_row.find_elements(By.CSS_SELECTOR, 'td.time a') | 278 | links = build2_row.find_elements(By.CSS_SELECTOR, 'td.time a') |
279 | msg = 'should not be a link on the build time for a failed build' | 279 | msg = 'should not be a link on the build time for a failed build' |
280 | self.assertEquals(len(links), 0, msg) | 280 | self.assertEqual(len(links), 0, msg) |
281 | 281 | ||
282 | def test_builds_table_search_box(self): | 282 | def test_builds_table_search_box(self): |
283 | """ Test the search box in the builds table on the all builds page """ | 283 | """ Test the search box in the builds table on the all builds page """ |
diff --git a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py index c6226d60eb..adea2edb0a 100644 --- a/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py +++ b/bitbake/lib/toaster/tests/browser/test_builddashboard_page_artifacts.py | |||
@@ -197,12 +197,12 @@ class TestBuildDashboardPageArtifacts(SeleniumTestCase): | |||
197 | # check package count and size, link on target name | 197 | # check package count and size, link on target name |
198 | selector = '[data-value="target-package-count"]' | 198 | selector = '[data-value="target-package-count"]' |
199 | element = self.find(selector) | 199 | element = self.find(selector) |
200 | self.assertEquals(element.text, '1', | 200 | self.assertEqual(element.text, '1', |
201 | 'package count should be shown for image builds') | 201 | 'package count should be shown for image builds') |
202 | 202 | ||
203 | selector = '[data-value="target-package-size"]' | 203 | selector = '[data-value="target-package-size"]' |
204 | element = self.find(selector) | 204 | element = self.find(selector) |
205 | self.assertEquals(element.text, '1.0 KB', | 205 | self.assertEqual(element.text, '1.0 KB', |
206 | 'package size should be shown for image builds') | 206 | 'package size should be shown for image builds') |
207 | 207 | ||
208 | selector = '[data-link="target-packages"]' | 208 | selector = '[data-link="target-packages"]' |