def test_check_downsampling_mismatch_manual_sample(): """Test method correctly returns with manual sampling""" # Testing manual downsampling assert _check_downsampling_mismatch(False, 512, 2048) == (True, 512)
def test_check_downsampling_mismatch_autosample(): """Test method correctly autosamples""" # Testing automatic downsampling assert _check_downsampling_mismatch(True, 0, 2048) == (True, 1024)
def test_check_downsampling_mismatch_no_sample(): """Test method correctly returns with no sampling""" # Testing no downsampling assert _check_downsampling_mismatch(False, 0, 2048) == (False, 0)
def test_check_downsampling_mismatch_bad_num_features(): """Raises error with autodownsampling an odd number of features""" with pytest.raises(ValueError): _check_downsampling_mismatch(True, 0, 2049)