Skip to content

Commit

Permalink
test: add issue test Suor#489
Browse files Browse the repository at this point in the history
  • Loading branch information
lozhkinandrei committed Dec 18, 2024
1 parent 7307e35 commit 6bd83c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,11 @@ def test_480(self):
conditions.append(reduce(operator.or_, queries))
list(queryset.filter(reduce(operator.and_, conditions)).cache())

def test_489(self):
_ = TaggedPost.objects.create(meta={}, tags=[1,2,3])
tags = TaggedPost.objects.cache().exclude(tags=[])

self.assertEqual(tags.count(), 1)

class RelatedTests(BaseTestCase):
fixtures = ['basic']
Expand Down

0 comments on commit 6bd83c9

Please sign in to comment.