Test Failed
Pull Request — master (#114)
by Aldo
03:48
created

build.tests.conftest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 12
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
from unittest.mock import MagicMock
4
import pytest
5
from napps.amlight.sdntrace.tracing.trace_manager import TraceManager
6
7
8
@pytest.fixture(autouse=True)
9
def mock_run_traces():
10
    """Mock get_running_loop to run tests."""
11
    TraceManager.run_traces = MagicMock()
12