Completed
Push — main ( dc9c2e...80557c )
by Jochen
05:20
created

tests.integration.blueprints.admin.authorization.test_views.get_resource()   A

Complexity

Conditions 2

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
"""
2
:Copyright: 2006-2020 Jochen Kupperschmidt
3
:License: Modified BSD, see LICENSE for details.
4
"""
5
6
7
def test_permission_index(role_admin_client, permission):
8
    url = '/admin/authorization/permissions'
9
    response = role_admin_client.get(url)
10
    assert response.status_code == 200
11
12
13
def test_role_index(role_admin_client, role):
14
    url = '/admin/authorization/roles'
15
    response = role_admin_client.get(url)
16
    assert response.status_code == 200
17
18
19
def test_role_view(role_admin_client, role):
20
    url = f'/admin/authorization/roles/{role.id}'
21
    response = role_admin_client.get(url)
22
    assert response.status_code == 200
23