Show More
@@ -539,6 +539,7 b' class BaseTestApi(object):' | |||
|
539 | 539 | ret = repo.get_api_data() |
|
540 | 540 | |
|
541 | 541 | members = [] |
|
542 | followers = [] | |
|
542 | 543 | for user in repo.repo_to_perm: |
|
543 | 544 | perm = user.permission.permission_name |
|
544 | 545 | user = user.user |
@@ -555,7 +556,11 b' class BaseTestApi(object):' | |||
|
555 | 556 | users_group_data['permission'] = perm |
|
556 | 557 | members.append(users_group_data) |
|
557 | 558 | |
|
559 | for user in repo.followers: | |
|
560 | followers.append(user.user.get_api_data()) | |
|
561 | ||
|
558 | 562 | ret['members'] = members |
|
563 | ret['followers'] = followers | |
|
559 | 564 | |
|
560 | 565 | expected = ret |
|
561 | 566 | self._compare_ok(id_, expected, given=response.body) |
@@ -570,6 +575,7 b' class BaseTestApi(object):' | |||
|
570 | 575 | ret = repo.get_api_data() |
|
571 | 576 | |
|
572 | 577 | members = [] |
|
578 | followers = [] | |
|
573 | 579 | for user in repo.repo_to_perm: |
|
574 | 580 | perm = user.permission.permission_name |
|
575 | 581 | user = user.user |
@@ -585,8 +591,12 b' class BaseTestApi(object):' | |||
|
585 | 591 | users_group_data['type'] = "users_group" |
|
586 | 592 | users_group_data['permission'] = perm |
|
587 | 593 | members.append(users_group_data) |
|
588 | ||
|
594 | ||
|
595 | for user in repo.followers: | |
|
596 | followers.append(user.user.get_api_data()) | |
|
597 | ||
|
589 | 598 | ret['members'] = members |
|
599 | ret['followers'] = followers | |
|
590 | 600 | |
|
591 | 601 | expected = ret |
|
592 | 602 | self._compare_ok(id_, expected, given=response.body) |
@@ -14,7 +14,7 b' class TestHomeController(TestController)' | |||
|
14 | 14 | self.log_user() |
|
15 | 15 | response = self.app.get(url(controller='home', action='index')) |
|
16 | 16 | #if global permission is set |
|
17 |
response.mustcontain('A |
|
|
17 | response.mustcontain('Add repository') | |
|
18 | 18 | response.mustcontain('href="/%s/summary"' % HG_REPO) |
|
19 | 19 | |
|
20 | 20 | response.mustcontain("""<img class="icon" title="Mercurial repository" """ |
General Comments 0
You need to be logged in to leave comments.
Login now