tests.conftest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A mongodb() 0 5 1
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