Completed
Push — main ( 4a33dd...b7acb4 )
by Jochen
03:55
created

email_admin()   A

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
nop 1
dl 0
loc 10
rs 9.95
c 0
b 0
f 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='session')
12
def email_admin(make_admin):
13
    permission_ids = {
14
        'admin.access',
15
        'email_config.create',
16
        'email_config.delete',
17
    }
18
    admin = make_admin('EmailAdmin', permission_ids)
19
    login_user(admin.id)
20
    return admin
21