0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00
django/tests/utils_tests
Aymeric Augustin b8ba73cd0c Raised SuspiciousFileOperation in safe_join.
Added a test for the condition safe_join is designed to prevent.

Previously, a generic ValueError was raised. It was impossible to tell
an intentional exception raised to implement safe_join's contract from
an unintentional exception caused by incorrect inputs or unexpected
conditions. That resulted in bizarre exception catching patterns, which
this patch removes.

Since safe_join is a private API and since the change is unlikely to
create security issues for users who use it anyway -- at worst, an
uncaught SuspiciousFileOperation exception will bubble up -- it isn't
documented.
2014-11-11 19:05:14 +01:00
..
archives
eggs
files
locale/nl/LC_MESSAGES
test_module Fixed #23670 -- Prevented partial import state during module autodiscovery 2014-10-31 08:01:47 -04:00
__init__.py
models.py
test_archive.py
test_autoreload.py Fixed test failure on Windows. 2014-07-30 14:31:59 -04:00
test_baseconv.py
test_checksums.py Fixed #23613 -- Deprecated django.utils.checksums 2014-10-10 09:22:20 -04:00
test_crypto.py
test_datastructures.py Fixed #23620 -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
test_dateformat.py
test_dateparse.py Fixed #22814 -- Allowed ISO-8601 [+-]hh timezone format in parse_datetime 2014-06-12 10:58:50 -06:00
test_datetime_safe.py
test_decorators.py
test_encoding.py Fixed #18456 -- Added path escaping to HttpRequest.get_full_path(). 2014-11-03 07:59:19 -05:00
test_feedgenerator.py
test_functional.py Fixed #23620 -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
test_html.py Fixed urlize after smart_urlquote rewrite 2014-09-09 21:59:35 +02:00
test_http.py Fixed #23620 -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
test_ipv6.py
test_itercompat.py
test_jslex.py Fixed remaining test failure in jslex tests. 2014-10-15 17:36:19 +02:00
test_lazyobject.py Fixed #23620 -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
test_lorem_ipsum.py Fixed #22789 -- Deprecated django.contrib.webdesign. 2014-07-14 08:45:19 -04:00
test_module_loading.py Fixed #23670 -- Prevented partial import state during module autodiscovery 2014-10-31 08:01:47 -04:00
test_no_submodule.py
test_numberformat.py
test_os_utils.py Raised SuspiciousFileOperation in safe_join. 2014-11-11 19:05:14 +01:00
test_regex_helper.py
test_safestring.py Fixed #20221 -- Allowed some functions that use mark_safe() to result in SafeText. 2014-10-20 17:08:29 -04:00
test_simplelazyobject.py
test_termcolors.py
test_text.py Consolidated some text utils into the utils_tests test package. 2014-09-23 19:45:59 +07:00
test_timesince.py
test_timezone.py Fixed #23388 -- Made django.utils.timezone.override usable as a decorator 2014-08-31 09:03:53 +02:00
test_tree.py
test_tzinfo.py Fixed #21281 -- Made override_settings act at class level when used as a TestCase decorator. 2014-11-03 14:14:39 -05:00