mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
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>
This commit is contained in:
@@ -467,6 +467,6 @@ esac
|
||||
# self.d.setVar("oe_libinstall", "echo test")
|
||||
# self.d.setVar("FOO", "foo=oe_libinstall; eval $foo")
|
||||
# self.d.setVarFlag("FOO", "vardeps", "oe_*")
|
||||
# self.assertEquals(deps, set(["oe_libinstall"]))
|
||||
# self.assertEqual(deps, set(["oe_libinstall"]))
|
||||
|
||||
|
||||
|
||||
@@ -259,25 +259,25 @@ class TestAllBuildsPage(SeleniumTestCase):
|
||||
element = self._get_build_time_element(build1)
|
||||
links = element.find_elements(By.CSS_SELECTOR, 'a')
|
||||
msg = 'should be a link on the build time for a successful recent build'
|
||||
self.assertEquals(len(links), 1, msg)
|
||||
self.assertEqual(len(links), 1, msg)
|
||||
|
||||
# test recent builds area for failed build
|
||||
element = self._get_build_time_element(build2)
|
||||
links = element.find_elements(By.CSS_SELECTOR, 'a')
|
||||
msg = 'should not be a link on the build time for a failed recent build'
|
||||
self.assertEquals(len(links), 0, msg)
|
||||
self.assertEqual(len(links), 0, msg)
|
||||
|
||||
# test the time column for successful build
|
||||
build1_row = self._get_row_for_build(build1)
|
||||
links = build1_row.find_elements(By.CSS_SELECTOR, 'td.time a')
|
||||
msg = 'should be a link on the build time for a successful build'
|
||||
self.assertEquals(len(links), 1, msg)
|
||||
self.assertEqual(len(links), 1, msg)
|
||||
|
||||
# test the time column for failed build
|
||||
build2_row = self._get_row_for_build(build2)
|
||||
links = build2_row.find_elements(By.CSS_SELECTOR, 'td.time a')
|
||||
msg = 'should not be a link on the build time for a failed build'
|
||||
self.assertEquals(len(links), 0, msg)
|
||||
self.assertEqual(len(links), 0, msg)
|
||||
|
||||
def test_builds_table_search_box(self):
|
||||
""" Test the search box in the builds table on the all builds page """
|
||||
|
||||
@@ -197,12 +197,12 @@ class TestBuildDashboardPageArtifacts(SeleniumTestCase):
|
||||
# check package count and size, link on target name
|
||||
selector = '[data-value="target-package-count"]'
|
||||
element = self.find(selector)
|
||||
self.assertEquals(element.text, '1',
|
||||
self.assertEqual(element.text, '1',
|
||||
'package count should be shown for image builds')
|
||||
|
||||
selector = '[data-value="target-package-size"]'
|
||||
element = self.find(selector)
|
||||
self.assertEquals(element.text, '1.0 KB',
|
||||
self.assertEqual(element.text, '1.0 KB',
|
||||
'package size should be shown for image builds')
|
||||
|
||||
selector = '[data-link="target-packages"]'
|
||||
|
||||
Reference in New Issue
Block a user