cron
travis-ci
2 of 2 new or added lines in 1 file covered. (100.0%)
540 of 547 relevant lines covered (98.72%)
2.96 hits per line
1 |
import asyncio |
3✔ |
2 | ||
3 |
import mock |
3✔ |
4 |
import pytest |
3✔ |
5 | ||
6 | ||
7 |
@pytest.fixture
|
3✔ |
8 |
def event_loop(): |
|
9 |
loop = asyncio.new_event_loop() |
3✔ |
10 |
yield loop
|
3✔ |
11 |
loop.stop() |
3✔ |
12 |
loop.close() |
3✔ |
13 | ||
14 | ||
15 |
@pytest.fixture
|
3✔ |
16 |
def mock_loop(): |
|
17 |
return mock.Mock(name='loop') |
3✔ |