Skip to content

Commit

Permalink
Add test for in_() with empty generator
Browse files Browse the repository at this point in the history
  • Loading branch information
huntfx committed Feb 9, 2023
1 parent e29aaad commit 0991706
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def test_in(self):
self.assertEqual(str(entity.a.b.in_('select id from User')), 'a.b in (select id from User)')
self.assertEqual(str(entity.a.b.in_('c', 'd', 'e')), 'a.b in ("c", "d", "e")')
self.assertEqual(str(entity.a.b.in_('c')), 'a.b in ("c")')
self.assertEqual(str(entity.a.b.in_()), 'a.b in ("")')
self.assertEqual(str(entity.a.b.in_(i for i in ())), 'a.b in ("")')
# TODO: Check if ints work with the API

def test_not(self):
Expand Down

0 comments on commit 0991706

Please sign in to comment.