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

test_web_db_admin()   B

Complexity

Conditions 5

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 5
c 1
b 0
f 0
dl 0
loc 11
rs 8.5454
1
def test_web_db_admin(basicApp, WebDatabasePlugin):
2
3
    plugin = WebDatabasePlugin(basicApp)
4
    plugin.activate()
5
6
    my_plugin = plugin.app.plugins.get("WebDatabasePlugin")
7
    assert plugin == my_plugin
8
    assert plugin.active is True
9
10
    assert hasattr(plugin.web, "db") is True
11
    assert hasattr(plugin.app.web, "db") is True
12
13