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

tests.integration.blueprints.admin.email.conftest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A email_admin() 0 10 1
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