Passed
Pull Request — master (#114)
by Aldo
03:58
created

build.tests.conftest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 12
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A mock_run_traces() 0 4 1
1
"""Set up for tests, automatically detected by pytest."""
2
3 1
from unittest.mock import MagicMock
4 1
import pytest
5 1
from napps.amlight.sdntrace.tracing.trace_manager import TraceManager
6
7
8 1
@pytest.fixture(autouse=True)
9 1
def mock_run_traces():
10
    """Mock get_running_loop to run tests."""
11
    TraceManager.run_traces = MagicMock()
12