mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
bitbake: toaster/tests/functional: Fix hardcoded database ID
Using a hardcoded database ID for a recipe is a bad idea and causes tests to fail when we change data/versions. Remove magic numbers. (Bitbake rev: 6e3a958666ae4821cfa1d43c064a2294e6881638) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -774,7 +774,12 @@ class TestProjectPage(SeleniumFunctionalTestCase):
|
|||||||
- Check recipe: name, summary, description, Version, Section,
|
- Check recipe: name, summary, description, Version, Section,
|
||||||
License, Approx. packages included, Approx. size, Recipe file
|
License, Approx. packages included, Approx. size, Recipe file
|
||||||
"""
|
"""
|
||||||
url = reverse("recipedetails", args=(TestProjectPage.project_id, 53428))
|
# Use a recipe which is likely to exist in the layer index but not enabled
|
||||||
|
# in poky out the box - xen-image-minimal from meta-virtualization
|
||||||
|
self._navigate_to_project_page()
|
||||||
|
prj = Project.objects.get(pk=TestProjectPage.project_id)
|
||||||
|
recipe_id = prj.get_all_compatible_recipes().get(name="xen-image-minimal").pk
|
||||||
|
url = reverse("recipedetails", args=(TestProjectPage.project_id, recipe_id))
|
||||||
self.get(url)
|
self.get(url)
|
||||||
self.wait_until_visible('.page-header')
|
self.wait_until_visible('.page-header')
|
||||||
# check title is displayed
|
# check title is displayed
|
||||||
|
|||||||
Reference in New Issue
Block a user