def test_clean_value(self): f = Filter(form_field=forms.IntegerField()) assert f.clean_value('5', 'exact') == 5 with pytest.raises(forms.ValidationError): f.clean_value('a', 'exact')
def test_clean_value(self): f = Filter(form_field=forms.IntegerField()) assert f.clean_value('5', 'exact') == 5 with pytest.raises(forms.ValidationError): f.clean_value('a', 'exact')