django/tests/regressiontests
Ramiro Morales 47ddd6a408 Fixed #19552 -- Enhanced makemessages handling of ``{# #}``-style template comments.
They are simply ignored now. This allows for a more correct behavior when
they are placed before translatable constructs on the same line.

Previously, the latter were wrongly ignored because the former were
preserved when converting template code to the internal Python-syntax
form later fed to xgettext but Python has no ``/* ... */``-style
comments.

Also, special comments directed to translators are now only taken in
account when they are located at the end of a line. e.g.::

  {# Translators: ignored #}{% trans "Literal A" %}{# Translators: valid, associated with "Literal B" below #}
  {% trans "Literal B" %}

Behavior of ``{% comment %}...{% endcomment %}``tags remains unchanged.

Thanks juneih at redpill-linpro dot com for the report and Claude for
his work on the issue.
2013-01-29 19:13:23 -03:00
..
admin_changelist Use new TestCase methods for equality comparisons 2012-12-24 00:24:14 +00:00
admin_custom_urls Added further flexibility to ModelAdmin for controlling post-save redirections. 2012-12-30 21:33:21 -08:00
admin_filters Fixed a dependence on set-ordering in tests 2012-12-24 01:33:44 +00:00
admin_inlines Fix #19524 -- Incorrect caching of parents of unsaved model instances. 2012-12-28 23:34:54 +01:00
admin_ordering Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
admin_registration Fixed #17090 -- Made the API specification for `ModelAdmin.get_list_display()` more consistent with that of `ModelAdmin.list_display` by separating out the admin action check boxes business. This is backwards-incompatible for those who have been using the still-unreleased `get_list_display()` method. Thanks to Ramiro Morales for the review. 2011-10-26 09:37:07 +00:00
admin_scripts Fixed #19665 -- Ensured proper stderr output for Command.run_from_argv 2013-01-25 14:56:41 +01:00
admin_util Fixed error introduced when testing patch for 013db6ba85 2013-01-21 22:42:47 +01:00
admin_validation [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
admin_views Fixed typos in docs and comments 2013-01-29 10:55:55 -07:00
admin_widgets Moved has_changed logic from widget to form field 2013-01-25 20:50:46 +01:00
aggregation_regress Fixed #10790 -- Refactored sql.Query.setup_joins() 2012-12-16 17:23:26 +02:00
app_loading Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:13:52 +01:00
backends Fixed #17158 -- Used a non-ambiguous representation of SQL queries 2013-01-26 17:51:44 +01:00
bash_completion [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
bug639 Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:13:52 +01:00
bug8245 Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
builtin_server Fixed typos in docs and comments 2013-01-29 10:55:55 -07:00
bulk_create Fixed #19351 -- SQLite bulk_insert of more than 500 single-field objs 2012-11-24 01:13:12 +02:00
cache Removed legacy ways of calling cache_page. 2012-12-29 21:59:07 +01:00
comment_tests Fixed #19483 -- Improved import error message in contrib.comments 2012-12-16 21:12:45 +01:00
conditional_processing Fixed parse_http_date docstring and moved related tests 2012-09-26 21:10:17 +02:00
context_processors Convert much of the regression tests to use absolute imports. There's still work to be done though. 2011-10-13 18:51:33 +00:00
createsuperuser [py3] Used compatible imports of StringIO. 2012-08-08 14:50:01 +02:00
csrf_tests [py3] Made csrf context processor return Unicode 2012-08-13 11:54:21 +02:00
custom_columns_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
custom_managers_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
datatypes [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
dates [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
db_typecasts [py3] Fixed access to dict keys/values/items. 2012-08-07 12:00:22 +02:00
decorators Removed legacy ways of calling cache_page. 2012-12-29 21:59:07 +01:00
defaultfilters another failing test case for square brackets. 2012-12-03 12:11:32 +00:00
defer_regress Converted a couple of assertEquals -> assertEqual 2012-11-28 23:44:50 +02:00
delete_regress Made some tests behave nicer re connection handling 2012-11-27 19:47:20 +02:00
dispatch Fixed #18676 -- Allow fast-path deletion of objects 2012-09-28 18:16:08 +03:00
expressions_regress Fixed #19462 -- Made assertQuerysetEqual detect undefined ordering 2012-12-13 13:33:11 +02:00
extra_regress Fixed #19462 -- Made assertQuerysetEqual detect undefined ordering 2012-12-13 13:33:11 +02:00
file_storage Fixed #19457 -- ImageField size detection failed for some files. 2013-01-01 11:54:56 +01:00
file_uploads Fixed #19036 -- Fixed base64 uploads decoding 2012-11-17 17:25:21 +01:00
fixtures_regress Don't rely on dictionary ordering in tests 2012-12-24 00:45:58 +00:00
forms Added HTML5 url input type 2013-01-28 22:11:00 +01:00
generic_inline_admin Added HTML5 url input type 2013-01-28 22:11:00 +01:00
generic_relations_regress Fixed #19500 -- Solved a regression in join reuse 2012-12-20 21:27:00 +02:00
generic_views Fixed #19378 -- Ensured get_success_url returns a non-lazy URL 2012-12-04 13:22:42 +01:00
get_or_create_regress Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
handlers Fixed #19519 again -- Regression in LiveServerTestCase after fd1279a4. 2013-01-01 10:14:11 +01:00
http_utils Added tests for conditional_content_removal. 2012-10-21 22:40:31 +02:00
httpwrappers Fixed #19585 -- Fixed loading cookie value as a dict 2013-01-11 21:09:33 +01:00
i18n Fixed #19552 -- Enhanced makemessages handling of ``{# #}``-style template comments. 2013-01-29 19:13:23 -03:00
indexes Created special PostgreSQL text indexes when unique is True 2013-01-07 17:54:30 +01:00
initial_sql_regress Amended an SQL test fixture to not include an id value 2012-12-10 17:49:04 +01:00
inline_formsets [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
inspectdb Fixed #19676 -- Supported 'self' foreign keys in inspectdb. 2013-01-28 10:21:07 +01:00
introspection Fixed #19677 -- Introspection of recursive foreign keys under SQLite. 2013-01-28 10:17:56 +01:00
logging_tests Fixed #19637 -- Ensured AdminEmailHandler fails silently 2013-01-21 20:32:36 +01:00
m2m_regress Fixed #19462 -- Made assertQuerysetEqual detect undefined ordering 2012-12-13 13:33:11 +02:00
m2m_through_regress Use new TestCase methods for equality comparisons 2012-12-24 00:24:14 +00:00
mail Fixed #19382 -- Stopped smtp backend raising exception when already closed 2013-01-03 20:41:45 +01:00
managers_regress Fixed #19462 -- Made assertQuerysetEqual detect undefined ordering 2012-12-13 13:33:11 +02:00
many_to_one_regress Fixed #17541 -- Fixed non-saved/nullable fk querying 2013-01-08 21:02:38 +02:00
max_lengths Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
middleware Fixed #19099 -- Split broken link emails out of common middleware. 2013-01-15 17:41:45 +01:00
middleware_exceptions Fixed #18013 -- Use the new 'as' syntax for exceptions. 2012-04-29 20:57:15 +02:00
model_fields Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:13:52 +01:00
model_forms_regress Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:13:52 +01:00
model_formsets_regress Fixed #19354 -- Do not assume usermodel.pk == usermodel.id 2012-11-29 21:45:43 +01:00
model_inheritance_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_inheritance_select_related [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
model_permalink refs #12836 - Added a test to assure permalink wraps method attributes 2012-09-08 11:58:48 -04:00
model_regress Fixed #19462 -- Made assertQuerysetEqual detect undefined ordering 2012-12-13 13:33:11 +02:00
modeladmin [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
multiple_database Silenced warnings in the tests of deprecated features. 2012-12-29 22:32:07 +01:00
nested_foreign_keys Fixed #16715 -- Fixed join promotion logic for nested nullable FKs 2012-08-25 14:14:45 +03:00
null_fk [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
null_fk_ordering [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
null_queries [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
one_to_one_regress Fixed #18153 -- Reverse OneToOne lookups on unsaved instances. 2012-10-09 21:36:35 +02:00
pagination Fixed a couple of stale tests caused by patch for #19462 2012-12-13 15:02:08 +02:00
queries Updated deprecated test assertions 2013-01-08 19:08:15 +01:00
queryset_pickle Fixed #17776 - DoesNotExist is not picklable 2012-06-22 13:28:15 +01:00
requests Removed HttpRequest.raw_post_data. 2012-12-29 21:59:07 +01:00
resolve_url Fixed #15552 -- LOGIN_URL and LOGIN_REDIRECT_URL can take URLpattern names. 2012-09-08 16:58:35 -06:00
reverse_single_related Convert the remainder of the relative imports in the tests to be absolute imports. 2011-10-13 21:34:56 +00:00
select_related_onetoone Updated deprecated test assertions 2013-01-08 19:08:15 +01:00
select_related_regress [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
serializers_regress Removed US localflavor-specific tests from core 2012-12-08 21:07:59 +01:00
servers Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:13:52 +01:00
settings_tests Removed django.core.management.setup_environ and execute_manager. 2012-12-29 21:59:07 +01:00
signals_regress Cleaned up several test cases, to better isolate state. 2012-09-07 13:47:12 -04:00
signed_cookies_tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
signing Fixed #18852 -- Restored backwards compatibility 2012-08-25 22:22:32 +02:00
sites_framework [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
special_headers Ensured tests pass using custom PASSWORD_HASHERS. 2012-04-30 22:10:27 +03:00
staticfiles_tests Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:13:52 +01:00
string_lookup [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
swappable_models Fixed #19401 -- Ensure that swappable model references are case insensitive. 2012-12-20 16:10:19 +08:00
syndication Fixed #7936 -- Added Last-Modified header to feeds 2012-09-30 22:40:25 +02:00
templates Updated deprecated test assertions 2013-01-08 19:08:15 +01:00
test_client_regress Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:13:52 +01:00
test_runner Fixed lockups in jenkins, refs #19546. 2013-01-09 23:32:51 +01:00
test_utils Fixed #19462 -- Made assertQuerysetEqual detect undefined ordering 2012-12-13 13:33:11 +02:00
text Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
transactions_regress Fixed #19354 -- Do not assume usermodel.pk == usermodel.id 2012-11-29 21:45:43 +01:00
urlpatterns_reverse Fixed #19357 -- Allow non-ASCII chars in filesystem paths 2012-12-08 11:13:52 +01:00
utils Advanced pending deprecation warnings. 2012-12-29 21:59:07 +01:00
version Fixed #19589 -- assertRegexpMatches is deprecated in Python 3.3. 2013-01-26 13:47:11 +01:00
views Fixed #19453 -- Ensured that the decorated function's arguments are obfuscated in the @sensitive_variables decorator's frame, in case the variables associated with those arguments were meant to be obfuscated from the decorated function's frame. 2012-12-31 09:34:08 -08:00
wsgi [py3k] Silence many warnings while running the tests. 2012-09-07 13:17:34 -04:00
__init__.py