Skip to contentSkip to conversation

toaster: selenium tests Update unique custom image string and fix import

PATCH New Michael Wood 1 participant 1 message Jun 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/lib/toaster/tests/browser/test_builddashboard_page.py   | 2 +-
 bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
bitbake/lib/toaster/tests/browser/test_builddashboard_page.py +1 -1
index 5e08749..0d39abb 100644
@@ -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
bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py +2 -1
index 8906cb2..ab5a8e6 100644
@@ -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):
         """
Signature · 1 line
2.7.4