Running ./setup.py test works again

This commit is contained in:
Thomas Scholtes 2014-01-20 14:33:40 +01:00
parent dffa13e0a4
commit 34f113bbcf

View file

@ -18,6 +18,7 @@ import os
import sqlite3
import _common
from _common import unittest
from beets import dbcore
@ -180,3 +181,9 @@ class ModelTest(_common.TestCase):
other_model = self.db._get(TestModel1, model.id)
self.assertEqual(other_model.foo, 'bar')
def suite():
return unittest.TestLoader().loadTestsFromName(__name__)
if __name__ == '__main__':
unittest.main(defaultTest='suite')