Ian Lewis avatar Ian Lewis committed 72332ea

Updated the base name for tests that get feed data

Comments (0)

Files changed (2)

lifestream/tests/base.py

 
 from testserver import PORT,FeedParserTestServer,stop_server
 
-class BaseTest(DjangoTestCase):
+class FeedTest(DjangoTestCase):
     base_url = "http://127.0.0.1:%s/%s"
 
     def setUp(self):

lifestream/tests/feed_tests.py

 #!/usr/bin/env python
 #:coding=utf-8:
 
-from base import BaseTest
+from base import FeedTest
 from lifestream.models import *
 
 from lifestream.feeds import update_feeds
 
-class RssFeedTest(BaseTest):
+class RssFeedTest(FeedTest):
     fixtures = ["rss.json"]
 
     def test_bitbucket_feed(self):
         update_feeds()
         self.assertEqual(Item.objects.filter(feed__pk=2).count(), 10)
 
-class AtomFeedTest(BaseTest):
+class AtomFeedTest(FeedTest):
     fixtures = ["atom.json"]
 
     #TODO: test fails.
         update_feeds()
         self.assertEqual(Item.objects.filter(feed__pk=101).count(), 25)
 
-class RegressionTest(BaseTest):
+class RegressionFeedTest(FeedTest):
     fixtures = ["regressions.json"]
 
     def assertNotEmpty(self, v):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.