# HG changeset patch # User Nicolas Chauvat # Date 1242947108 -7200 # Node ID d38a46498eb904ba646b30340ee75417c3b2abe8 # Parent 8681962e171e9245ccd3d41d14726a6dbec43ce7 [test] fix tests after renaming e{user,group} to cw{user,group} diff -r 8681962e171e -r d38a46498eb9 sobjects/test/data/sobjects/__init__.py --- a/sobjects/test/data/sobjects/__init__.py Fri May 22 00:58:04 2009 +0200 +++ b/sobjects/test/data/sobjects/__init__.py Fri May 22 01:05:08 2009 +0200 @@ -1,4 +1,5 @@ +from cubicweb.selectors import implements from cubicweb.sobjects.notification import StatusChangeMixIn, NotificationView class UserStatusChangeView(StatusChangeMixIn, NotificationView): - accepts = ('CWUser',) + __select__ = NotificationView.__select__ & implements('CWUser') diff -r 8681962e171e -r d38a46498eb9 sobjects/test/unittest_notification.py --- a/sobjects/test/unittest_notification.py Fri May 22 00:58:04 2009 +0200 +++ b/sobjects/test/unittest_notification.py Fri May 22 01:05:08 2009 +0200 @@ -78,9 +78,9 @@ yeah -url: http://testing.fr/cubicweb/euser/toto +url: http://testing.fr/cubicweb/cwuser/toto ''') - self.assertEquals(v.subject(), 'status changed euser #%s (admin)' % u.eid) + self.assertEquals(v.subject(), 'status changed cwuser #%s (admin)' % u.eid) if __name__ == '__main__': unittest_main() diff -r 8681962e171e -r d38a46498eb9 sobjects/test/unittest_supervising.py --- a/sobjects/test/unittest_supervising.py Fri May 22 00:58:04 2009 +0200 +++ b/sobjects/test/unittest_supervising.py Fri May 22 01:05:08 2009 +0200 @@ -43,23 +43,23 @@ data = re.sub('/\d+', '/EID', data) self.assertTextEquals('''user admin has made the following change(s): -* added euser #EID (toto) - http://testing.fr/cubicweb/euser/toto +* added cwuser #EID (toto) + http://testing.fr/cubicweb/cwuser/toto -* added relation in_group from euser #EID to egroup #EID +* added relation in_group from cwuser #EID to cwgroup #EID * deleted card #EID (une news !) -* added relation bookmarked_by from bookmark #EID to euser #EID +* added relation bookmarked_by from bookmark #EID to cwuser #EID * updated comment #EID (#EID) http://testing.fr/cubicweb/comment/EID * deleted relation comments from comment #EID to card #EID -* changed state of euser #EID (anon) +* changed state of cwuser #EID (anon) from state activated to state deactivated - http://testing.fr/cubicweb/euser/anon''', + http://testing.fr/cubicweb/cwuser/anon''', data) # check prepared email op._prepare_email()