Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """ |
||
2 | :Copyright: 2006-2020 Jochen Kupperschmidt |
||
3 | :License: Modified BSD, see LICENSE for details. |
||
4 | """ |
||
5 | |||
6 | import pytest |
||
7 | |||
8 | from tests.helpers import login_user |
||
9 | |||
10 | |||
11 | @pytest.fixture(scope='package') |
||
12 | def consent_admin(make_admin): |
||
13 | permission_ids = { |
||
14 | 'admin.access', |
||
15 | 'consent.administrate', |
||
16 | } |
||
17 | admin = make_admin('ConsentAdmin', permission_ids) |
||
18 | login_user(admin.id) |
||
19 | return admin |
||
20 | |||
21 | |||
22 | @pytest.fixture(scope='package') |
||
23 | def consent_admin_client(make_client, admin_app, consent_admin): |
||
24 | return make_client(admin_app, user_id=consent_admin.id) |
||
25 |