Mercurial > kallithea
annotate rhodecode/tests/functional/test_home.py @ 2679:dffb92224edf beta
removed ftp from allowed schemas
- added tests for the schemas fix
- moved parsing url if we only have came_from present
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 31 Jul 2012 12:15:54 +0200 |
parents | f467c75544af |
children | a2eaa0054430 |
rev | line source |
---|---|
547
1e757ac98988
renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
464
diff
changeset
|
1 from rhodecode.tests import * |
462
298546182b41
more test suites on login, fixed strange detached instance bug found during in tests.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 |
1788 | 3 |
691
7486da5f0628
Refactor codes for scm model
Marcin Kuzminski <marcin@python-works.com>
parents:
688
diff
changeset
|
4 class TestHomeController(TestController): |
462
298546182b41
more test suites on login, fixed strange detached instance bug found during in tests.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 |
298546182b41
more test suites on login, fixed strange detached instance bug found during in tests.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 def test_index(self): |
464
cbe777be5b8c
some more basic tests
Marcin Kuzminski <marcin@python-works.com>
parents:
462
diff
changeset
|
7 self.log_user() |
688
8acbfa837180
Tests rewrite for 1.2 added some globals configs to make tests easier.
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
8 response = self.app.get(url(controller='home', action='index')) |
464
cbe777be5b8c
some more basic tests
Marcin Kuzminski <marcin@python-works.com>
parents:
462
diff
changeset
|
9 #if global permission is set |
1788 | 10 response.mustcontain('ADD REPOSITORY') |
11 response.mustcontain('href="/%s/summary"' % HG_REPO) | |
875 | 12 |
1788 | 13 response.mustcontain("""<img class="icon" title="Mercurial repository" """ |
1481
605707b50d7c
test fixes for vcs update
Marcin Kuzminski <marcin@python-works.com>
parents:
904
diff
changeset
|
14 """alt="Mercurial repository" src="/images/icons/hg""" |
1788 | 15 """icon.png"/>""") |
16 response.mustcontain("""<img class="icon" title="public repository" """ | |
1481
605707b50d7c
test fixes for vcs update
Marcin Kuzminski <marcin@python-works.com>
parents:
904
diff
changeset
|
17 """alt="public repository" src="/images/icons/lock_""" |
1788 | 18 """open.png"/>""") |
19 | |
20 response.mustcontain( | |
2427
f467c75544af
Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents:
1788
diff
changeset
|
21 """<a title="Marcin Kuzminski &lt;marcin@python-works.com&gt;:\n |
f467c75544af
Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents:
1788
diff
changeset
|
22 merge" class="tooltip" href="/vcs_test_hg/changeset/27cd5cce30c96924232""" |
f467c75544af
Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents:
1788
diff
changeset
|
23 """dffcd24178a07ffeb5dfc">r173:27cd5cce30c9</a>""" |
f467c75544af
Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents:
1788
diff
changeset
|
24 ) |