test_index()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
1
import pytest
2
3
4
@pytest.fixture
5
def app():
6
    import sys
7
    sys.path.append('.')
8
9
    from sample_application import create_app
10
11
    return create_app()
12
13
14
@pytest.fixture
15
def client(app):
16
    return app.test_client()
17
18
19
def test_index(client):
20
    client.get('/')
21