Mercurial > kallithea
comparison rhodecode/tests/functional/test_files.py @ 1749:8ecc6b8229a5 beta
commit less models
- models don't do any commits(with few exceptions)
- all db transactions should be handled by higher level modules like controllers, celery tasks
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 02 Dec 2011 22:31:13 +0200 |
parents | 61eda8bf70d0 |
children | cf51bbfb120e |
comparison
equal
deleted
inserted
replaced
1748:a3ee2611e6e8 | 1749:8ecc6b8229a5 |
---|---|
309 repo_name=HG_REPO, | 309 repo_name=HG_REPO, |
310 revision=rev, | 310 revision=rev, |
311 f_path=f_path)) | 311 f_path=f_path)) |
312 | 312 |
313 assert "There is no file nor directory at the given path: %r at revision %r" % (f_path, rev[:12]) in response.session['flash'][0][1], 'No flash message' | 313 assert "There is no file nor directory at the given path: %r at revision %r" % (f_path, rev[:12]) in response.session['flash'][0][1], 'No flash message' |
314 | |
315 def test_ajaxed_files_list(self): | |
316 self.log_user() | |
317 rev = '27cd5cce30c96924232dffcd24178a07ffeb5dfc' | |
318 response = self.app.get(url('files_nodelist_home',repo_name=HG_REPO, | |
319 f_path='/', | |
320 revision=rev), | |
321 extra_environ={'HTTP_X_PARTIAL_XHR':'1'}, | |
322 ) | |
323 self.assertTrue("vcs/web/simplevcs/views/repository.py" in response.body) | |
324 | |
325 | |
326 |