Beispiel #1
0
 def test_sync_mp3(self):
     config = Config(db='sqlite://')
     Session = create_session(config)
     session = Session()
     sync_mp3(config, session)
     assert Track.count(session) == 141, Track.count(session)
     assert Artist.count(session) == 27, Artist.count(session)
     assert Album.count(session) == 12, Album.count(session)
Beispiel #2
0
 def __init__(self, session):
     self._session = session
     self._disk_gen = Album.current_disk_generation(self._session)
     self._ipod_gen = Album.current_ipod_generation(self._session)
     print "current generations: %d, %d" % (self._disk_gen, self._ipod_gen)