diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-06 14:40:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-06 22:28:03 +0000 |
commit | 029e82d418377468dfa167397a9e7271414ab506 (patch) | |
tree | 658ddf44222f0d879b906e5f1b640ef1dff0ce8d | |
parent | 829953631ba73684523adf9305b411cc312bf2ad (diff) | |
download | poky-029e82d418377468dfa167397a9e7271414ab506.tar.gz |
bitbake: bb/toaster: Fix assertEquals deprecation warnings
Fix:
DeprecationWarning: Please use assertEqual instead
(Bitbake rev: dd990ea6843685927954101feb729f3faa3a16d9)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/tests/codeparser.py | 2 | ||||
-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 |
3 files changed, 7 insertions, 7 deletions
diff --git a/bitbake/lib/bb/tests/codeparser.py b/bitbake/lib/bb/tests/codeparser.py index b6f2b77ee3..f6585fb3aa 100644 --- a/bitbake/lib/bb/tests/codeparser.py +++ b/bitbake/lib/bb/tests/codeparser.py | |||
@@ -467,6 +467,6 @@ esac | |||
467 | # self.d.setVar("oe_libinstall", "echo test") | 467 | # self.d.setVar("oe_libinstall", "echo test") |
468 | # self.d.setVar("FOO", "foo=oe_libinstall; eval $foo") | 468 | # self.d.setVar("FOO", "foo=oe_libinstall; eval $foo") |
469 | # self.d.setVarFlag("FOO", "vardeps", "oe_*") | 469 | # self.d.setVarFlag("FOO", "vardeps", "oe_*") |
470 | # self.assertEquals(deps, set(["oe_libinstall"])) | 470 | # self.assertEqual(deps, set(["oe_libinstall"])) |
471 | 471 | ||
472 | 472 | ||
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"]' |