Completed
Push — master ( c54497...3b5137 )
by Daniel
58s
created

WebDatabasePlugin()   A

Complexity

Conditions 1

Size

Total Lines 4

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 4
rs 10
1
import pytest
2
from groundwork_web.patterns import GwWebPattern
3
4
@pytest.fixture
5
def basicApp():
6
    """
7
    Loads a basic groundwork application and returns it.
8
    :return: app
9
    """
10
    from groundwork import App
11
    from tests.test_plugins.empty_plugin import EmptyPlugin
12
13
    app = App(plugins=[EmptyPlugin], strict=True)
14
    app.plugins.activate(["EmptyPlugin"])
15
    return app
16
17
18
@pytest.fixture
19
def EmptyPlugin():
20
    from tests.test_plugins.empty_plugin import EmptyPlugin
21
    return EmptyPlugin
22
23
24
@pytest.fixture
25
def WebPlugin():
26
    from tests.test_plugins.web_plugin import WebPlugin
27
    return WebPlugin
28
29
@pytest.fixture
30
def WebDatabasePlugin():
31
    from tests.test_plugins.web_database_plugin import WebDatabasePlugin
32
    return WebDatabasePlugin