Skip to content

Instantly share code, notes, and snippets.

@ChristinaMeno
Created April 11, 2011 18:19
Show Gist options
  • Save ChristinaMeno/913982 to your computer and use it in GitHub Desktop.
Save ChristinaMeno/913982 to your computer and use it in GitHub Desktop.
diff --git a/medley/playlist/tests/tests.py b/medley/playlist/tests/tests.py
index 56d7ca4..b350f56 100644
--- a/medley/playlist/tests/tests.py
+++ b/medley/playlist/tests/tests.py
@@ -15,6 +15,9 @@ from medley.playlist.models import Artist, Track, History, ArtistImage, Snapshot
from medley.playlist.trailer.amazon import AmazonTrailer
+class RequiresAMGTestCase(TestCase):
+ requires_databases = ['default', 'amgdb']
+
class TestAmazonIsDown(TestCase):
def test(self):
a = AmazonTrailer()
@@ -33,7 +36,7 @@ class TestAmazonIsDown(TestCase):
this_directory = os.path.dirname(os.path.abspath(__file__))
extra_track_fn = os.path.join(this_directory, 'sample_extra_track.json')
-class TestMakesongs(TestCase):
+class TestMakesongs(RequiresAMGTestCase):
def setUp(self):
lines = (
@@ -77,7 +80,7 @@ class TestUtilFunctions(TestCase):
for i, r in inputs_results:
self.assertEqual(get_artist_list(i), r)
-class CreateObjectsTest(TestCase):
+class CreateObjectsTest(RequiresAMGTestCase):
fixtures = ['medley_categories', ]
name = 'Man or Astro-man?'
@@ -195,7 +198,7 @@ class HistoryCollisionTest(TransactionTestCase):
connection.close()
-class ArtistAmgTestCase(TestCase):
+class ArtistAmgTestCase(RequiresAMGTestCase):
fixtures = ['playlist_testdata', 'playlist_amg_testdata']
def test(self):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment