Beispiel #1
0
 def test_filter_no_queryset(self):
     fs = FilterSet()
     with pytest.raises(AssertionError):
         fs.filter()
 def test_filter_no_queryset(self):
     fs = FilterSet()
     with pytest.raises(AssertionError):
         fs.filter()
Beispiel #3
0
 def test_filter_data_not_querydict(self):
     fs = FilterSet(queryset=[])
     with pytest.raises(AssertionError):
         fs.filter()
 def test_filter_data_not_querydict(self):
     fs = FilterSet(queryset=[])
     with pytest.raises(AssertionError):
         fs.filter()