def setUp(self): super(CaseSensitivityTest, self).setUp() album = _common.album() album.album = u"album" album.genre = u"alternative" album.year = u"2001" album.flex1 = u"flex1" album.flex2 = u"flex2-A" album.albumartist = u"bar" album.albumartist_sort = None self.lib.add(album) item = _common.item() item.title = u'another' item.artist = u'lowercase' item.album = u'album' item.year = 2001 item.comp = True item.flex1 = u"flex1" item.flex2 = u"flex2-A" item.album_id = album.id item.artist_sort = None item.track = 10 self.lib.add(item) self.new_album = album self.new_item = item
def setUp(self): super(DummyDataTestCase, self).setUp() self.lib = beets.library.Library(':memory:') albums = [_common.album() for _ in range(3)] albums[0].album = "album A" albums[0].genre = "Rock" albums[0].year = "2001" albums[0].flex1 = "flex1-1" albums[0].flex2 = "flex2-A" albums[0].albumartist = "foo" albums[0].albumartist_sort = None albums[1].album = "album B" albums[1].genre = "Rock" albums[1].year = "2001" albums[1].flex1 = "flex1-2" albums[1].flex2 = "flex2-A" albums[1].albumartist = "bar" albums[1].albumartist_sort = None albums[2].album = "album C" albums[2].genre = "Jazz" albums[2].year = "2005" albums[2].flex1 = "flex1-1" albums[2].flex2 = "flex2-B" albums[2].albumartist = "baz" albums[2].albumartist_sort = None for album in albums: self.lib.add(album) items = [_common.item() for _ in range(4)] items[0].title = 'foo bar' items[0].artist = 'one' items[0].album = 'baz' items[0].year = 2001 items[0].comp = True items[0].flex1 = "flex1-0" items[0].flex2 = "flex2-A" items[0].album_id = albums[0].id items[0].artist_sort = None items[1].title = 'baz qux' items[1].artist = 'two' items[1].album = 'baz' items[1].year = 2002 items[1].comp = True items[1].flex1 = "flex1-1" items[1].flex2 = "flex2-A" items[1].album_id = albums[0].id items[1].artist_sort = None items[2].title = 'beets 4 eva' items[2].artist = 'three' items[2].album = 'foo' items[2].year = 2003 items[2].comp = False items[2].flex1 = "flex1-2" items[2].flex2 = "flex1-B" items[2].album_id = albums[1].id items[2].artist_sort = None items[3].title = 'beets 4 eva' items[3].artist = 'three' items[3].album = 'foo2' items[3].year = 2004 items[3].comp = False items[3].flex1 = "flex1-2" items[3].flex2 = "flex1-C" items[3].album_id = albums[2].id items[3].artist_sort = None for item in items: self.lib.add(item)
def setUp(self): super(DummyDataTestCase, self).setUp() self.lib = beets.library.Library(':memory:') albums = [_common.album() for _ in range(3)] albums[0].album = u"Album A" albums[0].genre = u"Rock" albums[0].year = 2001 albums[0].flex1 = u"Flex1-1" albums[0].flex2 = u"Flex2-A" albums[0].albumartist = u"Foo" albums[0].albumartist_sort = None albums[1].album = u"Album B" albums[1].genre = u"Rock" albums[1].year = 2001 albums[1].flex1 = u"Flex1-2" albums[1].flex2 = u"Flex2-A" albums[1].albumartist = u"Bar" albums[1].albumartist_sort = None albums[2].album = u"Album C" albums[2].genre = u"Jazz" albums[2].year = 2005 albums[2].flex1 = u"Flex1-1" albums[2].flex2 = u"Flex2-B" albums[2].albumartist = u"Baz" albums[2].albumartist_sort = None for album in albums: self.lib.add(album) items = [_common.item() for _ in range(4)] items[0].title = u'Foo bar' items[0].artist = u'One' items[0].album = u'Baz' items[0].year = 2001 items[0].comp = True items[0].flex1 = u"Flex1-0" items[0].flex2 = u"Flex2-A" items[0].album_id = albums[0].id items[0].artist_sort = None items[0].path = "/path0.mp3" items[0].track = 1 items[1].title = u'Baz qux' items[1].artist = u'Two' items[1].album = u'Baz' items[1].year = 2002 items[1].comp = True items[1].flex1 = u"Flex1-1" items[1].flex2 = u"Flex2-A" items[1].album_id = albums[0].id items[1].artist_sort = None items[1].path = "/patH1.mp3" items[1].track = 2 items[2].title = u'Beets 4 eva' items[2].artist = u'Three' items[2].album = u'Foo' items[2].year = 2003 items[2].comp = False items[2].flex1 = u"Flex1-2" items[2].flex2 = u"Flex1-B" items[2].album_id = albums[1].id items[2].artist_sort = None items[2].path = "/paTH2.mp3" items[2].track = 3 items[3].title = u'Beets 4 eva' items[3].artist = u'Three' items[3].album = u'Foo2' items[3].year = 2004 items[3].comp = False items[3].flex1 = u"Flex1-2" items[3].flex2 = u"Flex1-C" items[3].album_id = albums[2].id items[3].artist_sort = None items[3].path = "/PATH3.mp3" items[3].track = 4 for item in items: self.lib.add(item)
def setUp(self): super(DummyDataTestCase, self).setUp() self.lib = beets.library.Library(':memory:') albums = [_common.album() for _ in range(3)] albums[0].album = "Album A" albums[0].genre = "Rock" albums[0].year = "2001" albums[0].flex1 = "Flex1-1" albums[0].flex2 = "Flex2-A" albums[0].albumartist = "Foo" albums[0].albumartist_sort = None albums[1].album = "Album B" albums[1].genre = "Rock" albums[1].year = "2001" albums[1].flex1 = "Flex1-2" albums[1].flex2 = "Flex2-A" albums[1].albumartist = "Bar" albums[1].albumartist_sort = None albums[2].album = "Album C" albums[2].genre = "Jazz" albums[2].year = "2005" albums[2].flex1 = "Flex1-1" albums[2].flex2 = "Flex2-B" albums[2].albumartist = "Baz" albums[2].albumartist_sort = None for album in albums: self.lib.add(album) items = [_common.item() for _ in range(4)] items[0].title = 'Foo bar' items[0].artist = 'One' items[0].album = 'Baz' items[0].year = 2001 items[0].comp = True items[0].flex1 = "Flex1-0" items[0].flex2 = "Flex2-A" items[0].album_id = albums[0].id items[0].artist_sort = None items[1].title = 'Baz qux' items[1].artist = 'Two' items[1].album = 'Baz' items[1].year = 2002 items[1].comp = True items[1].flex1 = "Flex1-1" items[1].flex2 = "Flex2-A" items[1].album_id = albums[0].id items[1].artist_sort = None items[2].title = 'Beets 4 eva' items[2].artist = 'Three' items[2].album = 'Foo' items[2].year = 2003 items[2].comp = False items[2].flex1 = "Flex1-2" items[2].flex2 = "Flex1-B" items[2].album_id = albums[1].id items[2].artist_sort = None items[3].title = 'Beets 4 eva' items[3].artist = 'Three' items[3].album = 'Foo2' items[3].year = 2004 items[3].comp = False items[3].flex1 = "Flex1-2" items[3].flex2 = "Flex1-C" items[3].album_id = albums[2].id items[3].artist_sort = None for item in items: self.lib.add(item)