Completed
Push — master ( 4ef6bb...d8abb9 )
by Piotr
01:01
created

test_app_valid_with_valid_input()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
from unittest.mock import patch
2
3
from mount_api.core.app import Application
4
from mount_api.core.settings import BaseSettings
5
6
7
class TestSettings(BaseSettings):
8
    debug = False
9
    hostname = 'localhost'
10
    port = 8000
11
    router = 'mount_api.routing.Router'
12
    runner = 'mount_api.runners.SimpleWerkzeugRunner'
13
14
15
@patch('werkzeug.serving.run_simple')
16
def test_app_valid_with_valid_input(run_simple_mock):
17
    app = Application(TestSettings, routes=[])
18
    app.run()
19