def test_base_descriptor_1(data): bd = BaseDescriptor() # test n_jobs assert bd.elapsed == 0 assert bd.n_jobs == 1 bd.n_jobs = 100 assert bd.n_jobs == cpu_count() # test featurizers list assert hasattr(bd, '__featurizers__') assert not bd.__featurizers__
def test_base_descriptor_1(data): bd = BaseDescriptor() # test n_jobs assert bd.elapsed == 0 # test featurizers list assert hasattr(bd, '__featurizers__') assert not bd.__featurizer_sets__ with pytest.raises(ValueError, match='`on_errors`'): bd.on_errors = 'illegal'