For more recent versions, please refer to the corresponding release on GitHub: https://github.com/stphivos/django-mock-queries/releases
v2.1.7 (2021-09-12)
Closed issues:
Merged pull requests:
- Improve flaky test for query order by random #145 (stphivos)
- Remove dollar sign from example commands #144 (1oglop1)
- Loosen model-bakery dependency #140 (allanlewis)
- Suppress UnorderedObjectListWarning when ordering MockSet #139 (thatguysimon)
v2.1.6 (2021-02-21)
Closed issues:
- MockSet constructor limited to 11 elements on Python 3.8 #125
- Error if use order_by random #119
- MockModel never "in" MockSet in Python 2.7 #117
- Limit in MockModel number inside MockSet? #113
- README.md typo #106
- Filter with empty Q object doesn't work as expected #102
Merged pull requests:
- Fix tox for ci #134 (mdalp)
- Support for QuerySet.iterator() #132 (platonfloria)
- Fix MockSet too many positional arguments error in python 3.8 #129 (stphivos)
- Fix bug on empty DjangoQ #128 (stphivos)
- Fix order_by random #127 (stphivos)
- Update packages, drop unsupported Django versions with python 2.7, 3.5 #126 (stphivos)
- #106 - add import to README #124 (shinneider)
- Build universal wheel #122 (allanlewis)
- Use unittest.mock when available instead of mock. #121 (Gabriel-Fontenelle)
- Fix the problem that MockModel never "in" MockSet #118 (mapx)
- Add query named values list #116 (stphivos)
v2.1.5 (2020-05-04)
Closed issues:
Merged pull requests:
v2.1.4 (2020-03-02)
Closed issues:
- Values list doesn't act as expected #103
Merged pull requests:
- Add support for Django 3.0.x #109 (stphivos)
- Replace model-mommy with model-bakery #108 (stphivos)
- Extend get_field_values to work for date/datetime objects #101 (brianzhou13)
v2.1.3 (2019-05-04)
Closed issues:
- Breaking changes in 2.1.2: ignored filtered elements #96
Merged pull requests:
- Use compatible release clause in tox deps versions #100 (stphivos)
- Add failing test with falsy comparable value #99 (stphivos)
- Django Dependency Issues #98 (ish-vasa)
- Fix 96: check if value is None, and do not rely on boolean conversion #97 (dannywillems)
v2.1.2 (2019-04-27)
Closed issues:
- Mocking serializer: ListSerializer object is not callable #91
Merged pull requests:
- Add support for Django 2.2 and Python 3.7 #95 (m3brown)
- Exclude none row from filter comparison #93 (stphivos)
- Exclude none row from filter comparison #92 (tlfung0219)
v2.1.1 (2018-08-09)
v2.1.0 (2018-08-09)
Closed issues:
- MockSet doesn't seem to copy all of its related model's properties. #88
Merged pull requests:
- Bump django version lock #89 (dmastylo)
- Fix MockSet empty querysets evaluated to False when converted to bool in py27 #87 (stphivos)
- Fix: Empty querysets should be evaluated to False when converted to boolean #86 (mannysz)
- Missing range in comparisons list #85 (rbusquet)
v2.0.1 (2018-05-18)
Closed issues:
- Filter by attribute with False value is not working #83
- Plans for releasing
MockSet
as a child ofMagicMock
? #81
Merged pull requests:
v2.0.0 (2018-04-21)
Closed issues:
- Incompatible with pip 10.0.0 #80
.distinct\(\)
when using a regular model: 'ModelName has no attribute items` #77
Merged pull requests:
- ISSUE-80 Added pip==10.0 compatibility #82 (khudyakovavi)
- Adds support for update_or_create #79 (rbusquet)
- Fix hash_dict to use concrete fields with django models #78 (stphivos)
- Refactor maintainability issues on complexity part 2 #76 (stphivos)
- Refactor maintainability issues on complexity part 1 #75 (stphivos)
- Refactor more maintainability issues on duplication #74 (stphivos)
- Refactor maintainability issues on duplication #73 (stphivos)
- Attempt to improve performance of MockSet by reducing the use of MagicMock. #71 (zuzelvp)
v1.0.7 (2018-03-03)
Closed issues:
Merged pull requests:
- Add support for Django 2 #72 (stphivos)
- Add MockSet write event triggers, improve model mocker orm simulation. #70 (stphivos)
- Feature/qs update delete #68 (stphivos)
- Omit call to save in MockSet.create #67 (stphivos)
- Improving implementation for distinct() #66 (zuzelvp)
v1.0.6 (2018-02-13)
Closed issues:
- AND operator is not handled properly causing random tests #60
Merged pull requests:
- Add python 3.5 to build matrix #64 (stphivos)
- Carta issues 60 and false positives #63 (stphivos)
- Fix failing test due to hardcoded year value 2017 #62 (stphivos)
- Issues 60 AND false positives #61 (zuzelvp)
- Keep the previous name for decorated methods, functions and classes #58 (grabekm90)
v1.0.5 (2017-11-30)
v1.0.4 (2017-11-30)
Fixed bugs:
Merged pull requests:
- MockSet earliest/latest fields args #57 (stphivos)
- Not obligatory field parameter in latest and earliest query function #56 (grabekm90)
- Fix a missed model parameter for MockSet in ModelMocker #55 (grabekm90)
v1.0.2 (2017-10-16)
Merged pull requests:
v1.0.0 (2017-10-15)
Closed issues:
Merged pull requests:
- Verify support of Django 1.11 #52 (stphivos)
- Use function find_field_names to determine appropriate field names fo… #51 (stphivos)
- Add support for Q objects with negation #49 (stphivos)
- Added missing lookups #47 (szykin)
- dates() and datetimes() support #46 (szykin)
- Feature/range requirements #45 (stphivos)
- Update model-mommy req #44 (orf)
v0.0.16 (2017-03-14)
Merged pull requests:
- Upload v0.0.16 to pypi #43 (stphivos)
- Comparisons: regex, iregex, date, datetime rework. #42 (szykin)
- Fix one-to-many field lookup to use model name #41 (stphivos)
v0.0.15 (2017-03-06)
Merged pull requests:
- Update missing qs methods, lookups, aggregations. #39 (stphivos)
- Add support for nested fields to values and values_list #38 (stphivos)
- Add support for aggregate on related fields #37 (stphivos)
- MockOptions, get_or_create_with defaults #36 (szykin)
- Add docs todo, remove completed decorators todo. #35 (stphivos)
- Add some quirky queries supported by Django: pk is in a subquery and child is equal. #34 (donkirkby)
- Raise specific DoesNotExist exception for the model. #32 (donkirkby)
- Add decorators for unified method patching/replacement #31 (stphivos)
- _meta, values(), values_list() #30 (szykin)
- Add mocked_relations decorator for all related models. #28 (donkirkby)
v0.0.14 (2016-12-15)
Merged pull requests:
- Upload v0.0.14 to PyPI #25 (stphivos)
- Feature/aggregate multi params #24 (szykin)
- Mock django db #23 (donkirkby)
- django-rest-framework serializer assert function #5 (stphivos)
- Test remaining crud functions and exception scenarios #4 (stphivos)
- Test query aggregate, create and get functionality #3 (stphivos)
- Fix and test query filtering by q objects #2 (stphivos)
- Fix/remove pytest ini #1 (stphivos)
v0.0.13 (2016-06-08)
* This Changelog was automatically generated by github_changelog_generator