feat: renamed main album collection to album collection
This commit is contained in:
@@ -37,7 +37,7 @@ class TestCollection(unittest.TestCase):
|
||||
is the same object
|
||||
"""
|
||||
|
||||
a = self.complicated_object().main_album_collection[0]
|
||||
a = self.complicated_object().album_collection[0]
|
||||
b = a.song_collection[0].album_collection[0]
|
||||
c = a.song_collection[1].album_collection[0]
|
||||
d = b.song_collection[0].album_collection[0]
|
||||
@@ -62,9 +62,9 @@ class TestCollection(unittest.TestCase):
|
||||
"""
|
||||
|
||||
a = self.complicated_object()
|
||||
b = a.main_album_collection[0].artist_collection[0]
|
||||
c = b.main_album_collection[0].artist_collection[0]
|
||||
d = c.main_album_collection[0].artist_collection[0]
|
||||
b = a.album_collection[0].artist_collection[0]
|
||||
c = b.album_collection[0].artist_collection[0]
|
||||
d = c.album_collection[0].artist_collection[0]
|
||||
|
||||
self.assertTrue(a.id == b.id == c.id == d.id)
|
||||
self.assertTrue(a.name == b.name == c.name == d.name == "artist")
|
||||
@@ -86,7 +86,7 @@ class TestCollection(unittest.TestCase):
|
||||
]
|
||||
)
|
||||
|
||||
self.assertTrue(artist.id == artist.main_album_collection[0].song_collection[0].artist_collection[0].id)
|
||||
self.assertTrue(artist.id == artist.album_collection[0].song_collection[0].artist_collection[0].id)
|
||||
|
||||
def test_artist_collection_sync(self):
|
||||
album_1 = Album(
|
||||
@@ -115,9 +115,9 @@ class TestCollection(unittest.TestCase):
|
||||
|
||||
def test_song_artist_relations(self):
|
||||
a = self.complicated_object()
|
||||
b = a.main_album_collection[0].song_collection[0].artist_collection[0]
|
||||
c = b.main_album_collection[0].song_collection[0].artist_collection[0]
|
||||
d = c.main_album_collection[0].song_collection[0].artist_collection[0]
|
||||
b = a.album_collection[0].song_collection[0].artist_collection[0]
|
||||
c = b.album_collection[0].song_collection[0].artist_collection[0]
|
||||
d = c.album_collection[0].song_collection[0].artist_collection[0]
|
||||
|
||||
self.assertTrue(a.id == b.id == c.id == d.id)
|
||||
self.assertTrue(a.name == b.name == c.name == d.name == "artist")
|
||||
|
||||
Reference in New Issue
Block a user