예제 #1
0
 def _items_and_info(self):
     items = [_common.item()]
     items[0].track = 1
     items[0].path = '/path/to/file.mp3'
     info = autotag.AlbumInfo('the album', 'album id', 'the artist',
                              'artist id',
                              [autotag.TrackInfo('the title', 'track id')])
     return items, info
예제 #2
0
파일: test_ui.py 프로젝트: tux-00/beets
    def setUp(self):
        super(ShowChangeTest, self).setUp()
        self.io.install()

        self.items = [_common.item()]
        self.items[0].track = 1
        self.items[0].path = '/path/to/file.mp3'
        self.info = autotag.AlbumInfo(
            u'the album', u'album id', u'the artist', u'artist id',
            [autotag.TrackInfo(u'the title', u'track id', index=1)])
예제 #3
0
    def setUp(self):
        self.io = _common.DummyIO()
        self.io.install()

        self.items = [_common.item()]
        self.items[0].track = 1
        self.items[0].path = '/path/to/file.mp3'
        self.info = autotag.AlbumInfo(
            'the album', 'album id', 'the artist', 'artist id',
            [autotag.TrackInfo('the title', 'track id', index=1)])