summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_ranges.py
AgeCommit message (Collapse)Author
2025-12-03Fixed #36280 -- Replaced exception checks with assertRaisesMessage().Skyiesac
2025-11-21Refs #36031 -- Added tests of DecimalRangeField __contains lookup with ↵Mariusz Felisiak
unbounded decimal ranges. Co-authored-by: Aman Sharma <210100011@iitb.ac.in>
2025-02-18Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc.Mariusz Felisiak
datetime.UTC was added in Python 3.11.
2022-12-12Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.Florian Apolloner
2022-10-05Fixed #34071 -- Improved error message for Range(Min/Max)ValueValidator.Jack Linke
2022-05-17Refs #32339 -- Deprecated default.html form template.David Smith
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-04-26Fixed #33656 -- Fixed MultiWidget crash when compressed value is a tuple.L
2022-03-24Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson
Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-11-05Fixed #33235 -- Removed "for = ..." from MultiWidget's <label>.David Smith
This improves accessibility for screen reader users.
2021-11-04Fixed #27147 -- Allowed specifying bounds of tuple inputs for non-discrete ↵Guilherme Martins Crocetti
range fields.
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
2020-07-15Refs #30446 -- Removed unnecessary Value(..., output_field) in docs and tests.Simon Charette
2019-12-05Fixed #31039 -- Added support for contained_by lookup with AutoFields, ↵Hasan Ramezani
SmallIntegerField, and DecimalField.
2019-11-14Fixed #29916 -- Added lower_inc, lower_inf, upper_inc, and upper_inf lookups ↵Dulmandakh
for RangeFields. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2019-11-08Fixed #24858 -- Added support for get_FOO_display() to ArrayField and ↵Hasan Ramezani
RangeFields. _get_FIELD_display() crashed when Field.choices was unhashable.
2019-11-05Fixed #30095 -- Fixed system check for RangeField/ArrayField.choices with ↵Hasan Ramezani
lists and tuples.
2019-09-17Fixed #30758 -- Made RangeFields use multiple hidden inputs for initial data.Nasir Hussain
2019-09-17Refs #30758 -- Added more tests for postgres.forms.ranges.Nasir Hussain
2019-09-10Refs #29598 -- Removed FloatRangeField per deprecation timeline.Mariusz Felisiak
2019-07-10Fixed #30621 -- Fixed crash of __contains lookup for Date/DateTimeRangeField ↵Mariusz Felisiak
when the right hand side is the same type. Thanks Tilman Koschnick for the report and initial patch. Thanks Carlton Gibson the review. Regression in 6b048b364ca1e0e56a0d3815bf2be33ac9998355.
2019-03-21Used QuerySet.bulk_create() in a couple of postgres tests.oliver
Follow up to 0ce2ad9ca4623cfd6dc2515430c0ae8a1717a607.
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