mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
bitbake: toaster: selenium tests Update unique custom image string and fix import
- Update the string for recognising a duplicate image recipe - Fix an incorrect relative import (Bitbake rev: 830743b1aa29a5ac220141e9c24b2592d6cebb29) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5ee6b706b2
commit
f48feeb76d
@@ -22,7 +22,7 @@
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.utils import timezone
|
||||
|
||||
from selenium_helpers import SeleniumTestCase
|
||||
from tests.browser.selenium_helpers import SeleniumTestCase
|
||||
|
||||
from orm.models import Project, Release, BitbakeVersion, Build, LogMessage
|
||||
from orm.models import Layer, Layer_Version, Recipe, CustomImageRecipe
|
||||
|
||||
@@ -25,6 +25,7 @@ from tests.browser.selenium_helpers import SeleniumTestCase
|
||||
from orm.models import BitbakeVersion, Release, Project, ProjectLayer, Layer
|
||||
from orm.models import Layer_Version, Recipe, CustomImageRecipe
|
||||
|
||||
|
||||
class TestNewCustomImagePage(SeleniumTestCase):
|
||||
CUSTOM_IMAGE_NAME = 'roopa-doopa'
|
||||
|
||||
@@ -140,7 +141,7 @@ class TestNewCustomImagePage(SeleniumTestCase):
|
||||
self._create_custom_image(self.recipe.name)
|
||||
element = self.wait_until_visible('#invalid-name-help')
|
||||
self.assertRegexpMatches(element.text.strip(),
|
||||
'recipe with this name already exists')
|
||||
'image with this name already exists')
|
||||
|
||||
def test_new_duplicates_project_image(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user