@pytest.fixture
def disable_bears(mocker):
 mocker.patch.object(coalib.collecting.Collectors, '_import_bears', autospec=True, return_value=[])

@ pytest . fixture def disable_bears ( mocker ) : mocker . patch . object ( coalib . collecting . Collectors , '_import_bears' , autospec = True , return_value = [ ] )
disable all bears that would otherwise be found with collect_bears .