Commits

Yuya Nishihara  committed ea993a1

tests: manifestmodel: install modeltest which can detect common errors

  • Participants
  • Parent commits 38be836
  • Branches stable

Comments (0)

Files changed (1)

File tests/qt_manifestmodel_test.py

 from nose.plugins.skip import SkipTest
 from PyQt4.QtCore import QModelIndex, QString
 from PyQt4.QtGui import QApplication
-from tortoisehg.hgqt import thgrepo
+from tortoisehg.hgqt import modeltest, thgrepo
 from tortoisehg.hgqt.manifestmodel import ManifestModel
 
 import helpers
         del cls.repo
 
     def new_model(self, rev):
-        return ManifestModel(self.repo, rev)
+        m = ManifestModel(self.repo, rev)
+        # install common assertions triggered by model signals
+        modeltest.ModelTest(m, m)
+        return m
 
     def test_data(self):
         m = self.new_model(0)