Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sgordon16 committed Jan 25, 2024
1 parent 97ec657 commit 390c0f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_filterset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from django.db import models
from django.test import TestCase, override_settings
from django.utils.datastructures import MultiValueDict

from django_filters.exceptions import FieldLookupError
from django_filters.filters import (
Expand Down Expand Up @@ -745,6 +746,10 @@ def test_creating_with_request(self):
m = mock.Mock()
f = self.F(request=m)
self.assertEqual(f.request, m)

def test_creating_with_no_data_default(self):
f = self.F()
self.assertIsInstance(f.data, MultiValueDict)


class FilterSetQuerysetTests(TestCase):
Expand Down

0 comments on commit 390c0f2

Please sign in to comment.