diff options
author | Mads Kiilerich <madski@unity3d.com> | 2013-03-21 11:17:01 +0100 |
---|---|---|
committer | Mads Kiilerich <madski@unity3d.com> | 2013-03-21 11:17:01 +0100 |
commit | 97d3c298349740c3366bd2ef785632bd98cb758f (patch) | |
tree | 2a790556d1ba227df37507e3d3583a344054dd26 /rhodecode/tests | |
parent | 6bc7d6dec34f04f13f033944a6239ccc09abf9f8 (diff) |
avoid displaying repr of internal classes in user facing messages
The context of the message will tell where the problem was and there is no reason to show
... does not exist for this repository <MercurialRepository at /home/marcink/repos/rhodecode>
--HG--
branch : beta
extra : transplant_source : %07%8D%1B%AD%F3%9B%00%7D%FE%9Cz%C3%00%17%FE%D0d%03%29%5C
Diffstat (limited to 'rhodecode/tests')
-rw-r--r-- | rhodecode/tests/functional/test_files.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rhodecode/tests/functional/test_files.py b/rhodecode/tests/functional/test_files.py index 6cfc942f..c79a9199 100644 --- a/rhodecode/tests/functional/test_files.py +++ b/rhodecode/tests/functional/test_files.py @@ -294,8 +294,7 @@ removed extra unicode conversion in diff.</div> msg = """Revision %r does not exist for this repository""" % (rev) self.checkSessionFlash(response, msg) - msg = """%s""" % (HG_REPO) - self.checkSessionFlash(response, msg) + self.assertEqual('http://localhost/%s/files/tip/' % HG_REPO, response.headers['location']) def test_raw_file_wrong_f_path(self): self.log_user() @@ -333,8 +332,7 @@ removed extra unicode conversion in diff.</div> msg = """Revision %r does not exist for this repository""" % (rev) self.checkSessionFlash(response, msg) - msg = """%s""" % (HG_REPO) - self.checkSessionFlash(response, msg) + self.assertEqual('http://localhost/%s/files/tip/' % HG_REPO, response.headers['location']) def test_raw_wrong_f_path(self): self.log_user() |