tests.conftest.mongodb()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nop 0
1
import pytest
2
from mongomantic import connect, disconnect
3
4
5
@pytest.fixture()
6
def mongodb():
7
    connect("localhost:27017", "test", mock=True)
8
    yield
9
    disconnect()
10