Ticket #1565: in_bulk-empty-list-test.diff

File in_bulk-empty-list-test.diff, 500 bytes (added by akaihola, 9 years ago)

Test fixed for in_bulk([])

  • tests/modeltests/lookup/models.py

     
    6767>>> Article.objects.in_bulk([1000])
    6868{}
    6969>>> Article.objects.in_bulk([])
    70 Traceback (most recent call last):
    71     ...
    72 AssertionError: in_bulk() cannot be passed an empty ID list.
     70{}
    7371>>> Article.objects.in_bulk('foo')
    7472Traceback (most recent call last):
    7573    ...
Back to Top