summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_ranges.py
AgeCommit message (Collapse)Author
2019-07-10[2.2.x] Fixed #30621 -- Fixed crash of __contains lookup for ↵Mariusz Felisiak
Date/DateTimeRangeField when the right hand side is the same type. Thanks Tilman Koschnick for the report and initial patch. Thanks Carlton Gibson for the review. Regression in 6b048b364ca1e0e56a0d3815bf2be33ac9998355. Backport of 7991111af12056ec9a856f35935d273526338c1f from master
2019-03-21[2.2.x] Used QuerySet.bulk_create() in a couple of postgres tests.oliver
Follow up to 0ce2ad9ca4623cfd6dc2515430c0ae8a1717a607. Backport of 2aaabe2004e1953eb7d7057edcf2fabd37f7394d from master.
2018-11-27Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham
2018-10-02Fixed #29598 -- Deprecated FloatRangeField in favor of DecimalRangeField.Stefano Chiodino
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2018-01-18Refs #23668 -- Removed passing default argument of current TZ to ↵Jon Dufresne
make_aware()/naive.
2017-11-07Fixed #28758 -- Fixed RangeMax/MinValueValidators crash with unbound ranges.Imran Iqbal
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-02-07Fixed #26903 -- Fixed __contains lookup for Date/DateTimeRangeField.Mariusz Felisiak
Thanks Mariusz Felisiak and Tim Graham for polishing the patch.
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-04-03Fixed #26101 -- Allowed introspection of base_field.model in RangeFieldanna
Used the same test and fix as in #25867. This required initializing base_field in RangeField.__init__, not when setting the attribute.
2016-02-16Fixed #26215 -- Fixed RangeField/ArrayField serialization with None valuesClaude Paroz
Also added tests for HStoreField and JSONField. Thanks Aleksey Bukin for the report and Tim Graham for the initial patch and the review.
2016-02-12Refs #25979 -- Dropped compatiblity for running tests on PostgreSQL < 9.2.Tim Graham
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-13Checked DateTimeTZRange/DateRange conversion in postgres_tests.Nicolas Delaby
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-06-06Switch to aware datetimes in test.Matthew Somerville
2015-06-06Instead of using DjangoJSONEncoder, use base_field's value_to_string.Matthew Somerville
Note this means the serialization of e.g. IntegerRangeField now has strings for lower and upper, so use to_python when they came back in (same behaviour as ArrayField, hopefully, from where I also got the set_attributes_from_name function).
2015-06-05Fixed #24937 -- fix serialization of Date(Time)RangeField.Matthew Somerville
Use the DjangoJSONEncoder so that datetime and date are encoded appropriately.
2015-06-04Fixed #24837 -- field__contained_by=RangeMarc Tamlyn
Provide `contained_by` lookups for the equivalent single valued fields related to the range field types. This acts as the opposite direction to rangefield__contains. With thanks to schinckel for the idea and initial tests.
2015-05-30Name PostgreSQL correctly.Marc Tamlyn
2015-05-25Fixed #24841 -- Made BaseRangeField.prepare_value() call base_field's ↵Villiers Strauss
prepare_value()
2015-04-28Fixed #24714 -- Used more specific assertions than assertEqual in tests.Alasdair Nicol
2015-04-18Stopped special-casing postgres-specific testsClaude Paroz
Refs #23879.
2015-02-20Fixed #24341 -- Added specific error messages to RangeField subclassesforesmac
2015-02-17Fixed #24290 -- Skipped postgres_tests if not running with PostgreSQL.Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-22Fixed #24170 -- Implemented decompress for BaseRangeField widgetsNg Zhi An
2015-01-10Fixed #24001 -- Added range fields for PostgreSQL.Marc Tamlyn
Added support for PostgreSQL range types to contrib.postgres. - 5 new model fields - 4 new form fields - New validators - Uses psycopg2's range type implementation in python