← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~carla-sella/ubuntu-rssreader-app/unique-random-topic into lp:ubuntu-rssreader-app

 

Carla Sella has proposed merging lp:~carla-sella/ubuntu-rssreader-app/unique-random-topic into lp:ubuntu-rssreader-app.

Commit message:
Autopilot tests for Shorts App.

Requested reviews:
  Alan Pope  (popey)
  Nicholas Skaggs (nskaggs)
Related bugs:
  Bug #1431365 in Ubuntu RSS Feed Reader App: "Tests fail at warning dialog "A topic with that name already exists""
  https://bugs.launchpad.net/ubuntu-rssreader-app/+bug/1431365

For more details, see:
https://code.launchpad.net/~carla-sella/ubuntu-rssreader-app/unique-random-topic/+merge/253281

Added unique random topic name to avoid creating topic in non clean env.
-- 
Your team Ubuntu RSS Feed Reader Developers is subscribed to branch lp:ubuntu-rssreader-app.
=== modified file 'tests/autopilot/shorts_app/tests/test_rssreader.py'
--- tests/autopilot/shorts_app/tests/test_rssreader.py	2015-01-30 19:39:48 +0000
+++ tests/autopilot/shorts_app/tests/test_rssreader.py	2015-03-17 21:12:56 +0000
@@ -20,6 +20,7 @@
 from testtools.matchers import Equals, NotEquals
 
 from shorts_app.tests import ShortsAppTestCase
+import uuid
 import logging
 
 logger = logging.getLogger(__name__)
@@ -33,9 +34,10 @@
 
     def setUp(self):
         super(BaseShortsAppTestCase, self).setUp()
+        unique_id = str(uuid.uuid1())
         self.test_feed_url = _EXTERNAL_FEED_URL
         self.test_feed_title = _EXTERNAL_FEED_TITLE
-        self.test_topic = 'Test topic'
+        self.test_topic = 'Test topic {}'.format(unique_id)
         self.test_change_topic = 'Ubuntu'
 
         # wait for any updates to finish before beginning tests