Nick Pope
|
847f46e9bf
|
Removed redundant QuerySet.all() calls in docs and tests.
Most QuerySet methods are mapped onto the Manager and, in general,
it isn't necessary to call .all() on the manager.
|
2022-02-22 10:29:38 +01:00 |
Mariusz Felisiak
|
7119f40c98
|
Refs #33476 -- Refactored code to strictly match 88 characters line length.
|
2022-02-07 20:37:05 +01:00 |
django-bot
|
9c19aff7c7
|
Refs #33476 -- Reformatted code with Black.
|
2022-02-07 20:37:05 +01:00 |
Carlton Gibson
|
306607d5b9
|
Fixed #32365 -- Made zoneinfo the default timezone implementation.
Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick
Pope, and Paul Ganssle for reviews.
|
2021-09-16 12:11:05 +02:00 |
Claude Paroz
|
676bd084f2
|
Fixed #32873 -- Deprecated settings.USE_L10N.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
2021-09-14 12:05:43 +02:00 |
David Smith
|
8208381ba6
|
Refs #32956 -- Corrected spelling of daylight saving time.
AP Stylebook: Saving not savings, no hyphen, and lowercase.
|
2021-08-06 13:00:24 +02:00 |
abhiabhi94
|
6a5ef557f8
|
Added test for errors when saving timezone-aware times if not supported.
|
2021-07-06 10:44:06 +02:00 |
Paul Ganssle
|
10d1261984
|
Refs #32365 -- Allowed use of non-pytz timezone implementations.
|
2021-01-19 11:59:37 +01:00 |
Adam Johnson
|
d17b380653
|
Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and comments.
|
2020-05-04 12:10:47 +02:00 |
Mariusz Felisiak
|
8be477be5c
|
Fixed timezones tests for PyYAML 5.3+.
|
2020-01-07 09:54:22 +01:00 |
Claude Paroz
|
1487f16f2d
|
Fixed #11385 -- Made forms.DateTimeField accept ISO 8601 date inputs.
Thanks José Padilla for the initial patch, and Carlton Gibson for the
review.
|
2020-01-06 10:52:09 +01:00 |
Aymeric Augustin
|
c06492dd87
|
Fixed #23524 -- Allowed DATABASES['TIME_ZONE'] option on PostgreSQL.
|
2019-12-04 18:22:08 +01:00 |
Jon Dufresne
|
39791c8e6d
|
Harmonized Windows checks in tests to a single style.
|
2019-11-06 15:14:30 +01:00 |
Anatol Ulrich
|
8ed6788aa4
|
Fixed #30821 -- Added ExtractIsoWeekYear database function and iso_week_day lookup.
|
2019-10-02 10:41:34 +02:00 |
Jon Dufresne
|
42b9a23267
|
Fixed #30400 -- Improved typography of user facing strings.
Thanks Claude Paroz for assistance with translations.
|
2019-06-28 16:46:18 +02:00 |
can
|
cef3f2d3c6
|
Fixed #28373 -- Used connection timezone instead of UTC when making dates timezone-aware on MySQL, SQLite, and Oracle.
Thanks vtalpaert for the initial patch.
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
2019-04-08 08:59:17 +02:00 |
Mariusz Felisiak
|
a57c783dd4
|
Fixed serializers tests for PyYAML 5.1+.
|
2019-03-14 13:16:48 -04:00 |
Simon Charette
|
b181aba7dd
|
Refs #28478 -- Prevented database feature based skipping on tests disallowing queries.
Database features may require a connection to be established to determine
whether or not they are enabled.
|
2019-01-14 16:16:30 -05:00 |
Tim Graham
|
0004daa536
|
Used 4 space hanging indent for dictionaries.
Thanks Mariusz Felisiak for auditing.
|
2019-01-02 18:18:19 -05:00 |
CHI Cheng
|
b7dbd5ff68
|
Fixed broken links to PyYAML page.
|
2018-12-27 10:48:37 +01:00 |
Tim Graham
|
193c109327
|
Switched TestCase to SimpleTestCase where possible in Django's tests.
|
2018-11-27 08:58:44 -05:00 |
Jon Dufresne
|
82f286cf6f
|
Refs #29784 -- Switched to https:// links where available.
|
2018-09-26 08:48:47 +02:00 |
Sergey Fedoseev
|
338f741c5e
|
Fixed #29546 -- Deprecated django.utils.timezone.FixedOffset.
|
2018-07-09 16:33:36 -04:00 |
Morgan Aubert
|
704443acac
|
Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().
|
2018-05-09 11:40:28 -04:00 |
Mariusz Felisiak
|
362813d628
|
Fixed hanging indentation in various code.
|
2018-03-16 10:54:34 +01:00 |
Tim Graham
|
a80903b711
|
Removed DatabaseFeatures.supports_microsecond_precision.
MySQL 5.5 (refs #28552) was the last database to use it.
|
2017-09-25 14:48:15 -04:00 |
Mads Jensen
|
a51c4de194
|
Used assertRaisesMessage() to test Django's error messages.
|
2017-07-29 19:07:23 -04:00 |
Tim Graham
|
6b4f018b2b
|
Replaced type-specific assertions with assertEqual().
Python docs say, "it's usually not necessary to invoke these methods directly."
|
2017-03-17 07:51:48 -04:00 |
chillaranand
|
d6eaf7c018
|
Refs #23919 -- Replaced super(ClassName, self) with super().
|
2017-01-25 12:23:46 -05:00 |
Claude Paroz
|
2b281cc35e
|
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
|
2017-01-18 21:33:28 +01:00 |
Claude Paroz
|
d7b9aaa366
|
Refs #23919 -- Removed encoding preambles and future imports
|
2017-01-18 09:55:19 +01:00 |
Tim Graham
|
b5f0b3478d
|
Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.
|
2016-12-07 17:42:31 -05:00 |
Andrew Nester
|
ade52ef71f
|
Fixed #27544 -- Fixed QuerySet.update(dt=F('dt') + timedelta) crash on SQLite.
|
2016-11-29 12:23:44 -05:00 |
Tim Graham
|
414ad25b09
|
Fixed #27327 -- Simplified time zone handling by requiring pytz.
|
2016-10-27 08:53:20 -04:00 |
Mads Jensen
|
0c1f71635f
|
Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual().
|
2016-09-13 10:07:37 -04:00 |
Jon Dufresne
|
4f336f6652
|
Fixed #26747 -- Used more specific assertions in the Django test suite.
|
2016-06-16 14:19:18 -04:00 |
Simon Charette
|
271581df60
|
Refs #26712 -- Removed workarounds for PostgreSQL queries on TIME_ZONE changes.
|
2016-06-06 11:26:21 -04:00 |
Tim Graham
|
92053acbb9
|
Fixed E128 flake8 warnings in tests/.
|
2016-04-08 10:12:33 -04:00 |
Tim Graham
|
015fad9060
|
Fixed #26175 -- Removed SHA1 password hashes in tests.
|
2016-02-06 08:47:21 -05:00 |
Marten Kenbeek
|
16411b8400
|
Fixed #26013 -- Moved django.core.urlresolvers to django.urls.
Thanks to Tim Graham for the review.
|
2015-12-31 14:21:29 -05:00 |
Josh Soref
|
93452a70e8
|
Fixed many spelling mistakes in code, comments, and docs.
|
2015-12-03 12:48:24 -05:00 |
Tim Graham
|
9350616211
|
Removed explicit User ids in tests.
|
2015-11-24 09:59:20 -05:00 |
Ville Skyttä
|
3ee18400ae
|
Fixed #25668 -- Misc spelling errors
|
2015-11-03 11:58:13 +02:00 |
Dražen Odobašić
|
b1e33ceced
|
Fixed #23395 -- Limited line lengths to 119 characters.
|
2015-09-12 11:40:50 -04:00 |
Aymeric Augustin
|
e39dd61808
|
Adjusted tests that were messing with database connections too heavily.
The previous implementation would result in tests hitting the wrong
database when running tests in parallel on multiple databases.
|
2015-09-09 23:01:16 +02:00 |
Simon Charette
|
be67400b47
|
Refs #24652 -- Used SimpleTestCase where appropriate.
|
2015-05-20 13:46:13 -04:00 |
Tim Graham
|
dc8edc9dbf
|
Added tzinfo to a test to fix RuntimeWarning.
|
2015-05-17 21:15:23 -04:00 |
Aymeric Augustin
|
06dc6759d8
|
Factored skip condition when pytz isn't installed.
|
2015-05-17 10:23:14 +02:00 |
Aymeric Augustin
|
da2c6959c8
|
Dropped the needs_datetime_string_cast feature.
It has been superseded by the converter infrastructure.
|
2015-05-17 10:23:13 +02:00 |
Aymeric Augustin
|
2a05a82311
|
Worked around a bug when chaining skipIf/UnlessDBFeature.
|
2015-05-17 09:40:33 +02:00 |