Passed
Push — master ( 0d76b8...93eaf5 )
by Vinicius
01:59 queued 14s
created

build.tests.conftest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A ev_loop() 0 5 2
1
"""Pytest conftest."""
2
import pytest
3
4
5
@pytest.fixture(autouse=True)
6
def ev_loop(monkeypatch, event_loop) -> None:
7
    """asyncio event loop autouse fixture."""
8
    monkeypatch.setattr("asyncio.get_running_loop", lambda: event_loop)
9
    yield event_loop
10