Skip to content

Commit d99d6ff

Browse files
authored
Support for QuerySet.iterator() (#132)
* Support for QuerySet.iterator() * Update version to v2.1.6
1 parent 0c197f8 commit d99d6ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

django_mock_queries/query.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class MockSet(with_metaclass(MockSetMeta, MagicMock)):
3434
'using',
3535
'select_related',
3636
'prefetch_related',
37-
'select_for_update'
37+
'select_for_update',
38+
'iterator'
3839
]
3940

4041
def __init__(self, *initial_items, **kwargs):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def parse_requirements(filename):
2020

2121
setup(
2222
name='django_mock_queries',
23-
version='2.1.5',
23+
version='2.1.6',
2424
description='A django library for mocking queryset functions in memory for testing',
2525
long_description=read_md('README.md'),
2626
url='https://github.com/stphivos/django-mock-queries',

0 commit comments

Comments
 (0)