summaryrefslogtreecommitdiff
path: root/tests/i18n/test_extraction.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-011-6/+0
| | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
* Fixed BasicExtractorTests.test_makemessages_find_files() test.Claude Paroz2022-07-261-2/+4
|
* Fixed #33565 -- Improved locale format validation for the makemessages command.Ronnie van den Crommenacker2022-06-081-1/+83
|
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-5/+12
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-262/+395
|
* Fixed #6106 -- Prevented makemessages from changing .po files when up to date.Ad Timmering2021-11-111-0/+34
| | | | Co-authored-by: Daniyal Abbasi <abbasi.daniyal98@gmail.com>
* Refs #32144 -- Made makemessages remove temporary files on preprocessing error.Carlton Gibson2021-07-011-1/+2
| | | | Co-authored-by: Anders Hovmöller <anders.hovmoller@dryft.se>
* Fixed #32144 -- Made makemessages remove temporary files when locale path ↵Carlton Gibson2021-07-011-0/+2
| | | | doesn't exist.
* Fixed typo in makemessages error message.Jacob Walls2021-06-211-2/+2
|
* Fixed capitalization of "ECMAScript" and "JavaScript".Nick Pope2021-04-291-1/+1
|
* Fixed #32145 -- Improved makemessages error message when app's locale ↵Josh Santos2021-02-091-2/+6
| | | | directory doesn't exist.
* Fixed #29712 -- Made makemessages warn if locales have hyphens and skip them.manav0142020-11-131-0/+14
|
* Disabled management commands output with verbosity 0 in various tests.François Freitag2020-04-201-5/+4
| | | | | Instead of capturing the command output and discard it immediately, tell the command not to log.
* Fixed #31314 -- Raised CommandError when locale is not specified in ↵Cristobal Mackenzie2020-02-281-0/+10
| | | | | | makemessages. Regression in 0707b824fe77e08ca8b75fcc3738ada694f2a3a6.
* Refs #30585 -- Updated project templates and tests to use (block)translate tags.Mike Hansen2019-12-181-19/+19
|
* Fixed #30585 -- Added {% translate %} and {% blocktranslate %} template tags.Mike Hansen2019-12-181-4/+8
|
* Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne2019-11-071-1/+8
|
* Removed redundant os.chdir() in RunInTmpDirMixin child classes.Jon Dufresne2019-02-051-2/+0
| | | setUp() already calls os.chdir(self.test_dir).
* Removed unused branch from SymlinkExtractorTests.test_symlink().Jon Dufresne2019-02-051-6/+3
| | | | | Unused since bb7bb379e8cd91a91336946829519d64e919a1d2. SymlinkExtractorTests.test_dir, which contains SymlinkExtractorTests.symlinked_dir, is deleted after every test.
* Removed default mode='r' argument from calls to open().Jon Dufresne2019-01-271-20/+20
|
* Fixed #29452 -- Fixed makemessages setting charset of .pot files.Bartosz Grabski2018-06-111-1/+22
|
* Fixed #17379 -- Removed management commands deactivation of the locale.Claude Paroz2018-05-131-4/+0
|
* Fixed hanging indentation in various code.Mariusz Felisiak2018-03-161-4/+2
|
* Fixed crash in i18n tests skip condition if gettext isn't installed.Tim Graham2017-06-291-1/+1
|
* Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne2017-06-011-2/+2
|
* Sorted imports per isort 4.2.9.Tim Graham2017-06-011-2/+3
|
* Fixed #28015 -- Added makemessages --add-location option.Ling-Xiao Yang2017-05-221-1/+38
| | | | Thanks François Freitag for review.
* Fixed #27868 -- Filtered locale path subdirectoriesClaude Paroz2017-02-231-0/+13
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed misc Python 2/3 references.Tim Graham2017-01-251-23/+18
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-2/+2
|
* Removed unneeded force_text calls in the test suiteClaude Paroz2017-01-241-19/+17
|
* Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham2017-01-201-2/+2
|
* Refs #23919 -- Replaced io.open() with open().Aymeric Augustin2017-01-181-6/+5
| | | | io.open() is an alias for open() on Python 3.
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-1/+1
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-2/+1
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-3/+0
|
* Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.Tim Graham2016-12-071-18/+11
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-8/+6
|
* Skipped makemessages -l tests when xgettext isn't installed.Marti Raudsepp2016-11-081-0/+1
|
* Refs #26940 -- Re-allowed makemessages without settingsClaude Paroz2016-10-011-0/+9
| | | | Thanks Tim Graham for the review.
* Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham2016-09-171-2/+2
| | | | http://bugs.python.org/issue27364
* Replaced 'raise SkipTest' with self.skipTest() in a few tests.Tim Graham2016-08-161-3/+3
|
* Fixed #27034 -- Made makemessages independent of USE_I18NClaude Paroz2016-08-111-0/+13
| | | | Thanks Tim Graham for the review.
* Fixed #26897 -- Fixed makemessages crash on Python 2 with non-ASCII file namesClaude Paroz2016-07-141-0/+4
| | | | Thanks Tim Graham for the review.
* Refs #26677 -- Simplified i18n test cleanups.Ramiro Morales2016-06-111-115/+4
| | | | | | | | | | The fact that we aren't dealing with the Django source tree anymore allows us to drop several tearDown()/addCleanup() calls that were concerned with removing apiece files/dirs/symlinks created by test cases, as we are covered by the removal of the parent temporary tree anyways. Thanks Tim Graham for advice and review.
* Fixed #26677 -- Converted some i18n tests to use disposable FS tree.Ramiro Morales2016-06-091-62/+56
| | | | | | | | | | | | This allows makemessages/compilemessages tests in `test_extraction.py` and `test_compilation.py` to actually run isolated from each other (unaffected by stray FS objects left by cleanup actions failures, debug sessions, etc.) and to take advantage of the parallel tests execution feature like most of the Django test suite. `test_percents.py` gets slightly refactored to not inherit from the new machinery which sets up every test case to copy and run under a temporary tree.
* Fixed #26687 -- Made an i18n test not use a hardcoded path separator.Ramiro Morales2016-05-311-1/+3
| | | Fixed a failure on Windows.
* Fixed #26674 -- Corrected a i18n makemessages test.Ramiro Morales2016-05-291-3/+3
| | | | | | | | | | Made it consistently read the PO file, decode its contents and then check for the non-breaking space Unicode code point. Previously we were erroneously skipping the interpretation of what we read as UTF-8 text. This was causing the test to fail on Windows with Python 3.5.
* Fixed #26341 -- Fixed makemessages breaking location comments for HTML filesClaude Paroz2016-04-301-2/+13
| | | | | Thanks Sylvain Garancher for the report and Veranika Sabiashchanskaya for the initial patch.
* Adapted _assertPoLocComment for multi-file source lines in po filesClaude Paroz2016-04-301-6/+13
| | | | Refs #17375.