Completed
Pull Request — master (#2236)
by Lasse
03:03 queued 01:14
created

disable_bears()   A

Complexity

Conditions 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
1
import pytest
2
3
import coalib.collecting.Collectors
4
5
6
@pytest.fixture
7
def disable_bears(mocker):
8
    """
9
    Disable all bears that would otherwise be found with `collect_bears(...)`.
10
    """
11
    mocker.patch.object(coalib.collecting.Collectors, '_import_bears',
12
                        autospec=True, return_value=[])
13