# HG changeset patch # User RĂ©mi Cardona # Date 1441817576 -7200 # Node ID 504a67206fdc8fdc5a017f488553addfb5e5146e # Parent 310344d6cc6cee1770aa3833b8f096a0f1aa96ae [web/test] Remove use of old test API to silence warning diff -r 310344d6cc6c -r 504a67206fdc web/test/unittest_application.py --- a/web/test/unittest_application.py Mon Sep 07 18:42:47 2015 +0200 +++ b/web/test/unittest_application.py Wed Sep 09 18:52:56 2015 +0200 @@ -182,7 +182,7 @@ def test_publish_validation_error(self): with self.admin_access.web_request() as req: - user = self.user(req) + user = req.user eid = text_type(user.eid) req.form = { 'eid': eid, diff -r 310344d6cc6c -r 504a67206fdc web/test/unittest_urlpublisher.py --- a/web/test/unittest_urlpublisher.py Mon Sep 07 18:42:47 2015 +0200 +++ b/web/test/unittest_urlpublisher.py Wed Sep 09 18:52:56 2015 +0200 @@ -96,7 +96,7 @@ def test_rest_path_eid(self): with self.admin_access.web_request() as req: - ctrl, rset = self.process(req, 'cwuser/eid/%s' % self.user(req).eid) + ctrl, rset = self.process(req, 'cwuser/eid/%s' % req.user.eid) self.assertEqual(ctrl, 'view') self.assertEqual(len(rset), 1) self.assertEqual(rset.description[0][0], 'CWUser')