summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-10-29Fixed #23614 -- Changed the way the migration autodetector orders ↵Markus Holtermann
unique/index_together Thanks to Naddiseo for the report and Tim Graham for the review
2014-10-28Fixed flake8 warnings.Tim Graham
2014-10-28Fixed #23606 -- Implemented Client and RequestFactory trace() methods.Rigel Di Scala
Thanks KevinEtienne for the suggestion.
2014-10-28Fixed #23721 -- check_related_objects without calling __iter__Collin Anderson
Refs #14334
2014-10-28Fixed #23493 -- Added bilateral attribute to TransformThomas Chaumeny
2014-10-27Fixed #23717 -- Fixed makemessages crash when STATIC_ROOT=NoneClaude Paroz
2014-10-27Fixed #23699 -- Prevented flush from loading initial data for apps with ↵Tony Zhu
migrations.
2014-10-27Fixed #23446 -- Officially recommended mysqlclient as MySQL driverClaude Paroz
Thanks Corey Farwell for the report and Tim Graham for the review. Thanks also to Inada Naoki for creating and maintaining mysqlclient.
2014-10-24Fixed #23652 -- Restored database name after destroying test databaseClaude Paroz
Thanks Bjarkias for the report.
2014-10-23Fixed #23707 -- Prevented discovery of duplicated testsClaude Paroz
2014-10-23Fixed #23702 -- Fixed adding an explicit id field on SQLite.Tim Graham
Thanks gavinwahl for the report.
2014-10-23Fixed #23444 -- Deprecated ↵a1tus
django.contrib.admin.helpers.InlineAdminForm.original_content_type_id
2014-10-23Added missing available app in migrations test caseClaude Paroz
In some test combinations, having contrib.auth available but not contrib.contenttypes can produce failures while creating permissions.
2014-10-23Fixed #23630 -- Made AlterModelTable rename auto-created M2M tables.Tim Graham
Thanks Naddiseo for the report, Andrew Godwin for guidance, and Shai Berger for review.
2014-10-23Made a doctest compatible with Python 2Claude Paroz
That test might not always execute, but can be executed when the parent test label is explicitely given.
2014-10-22Fixed flake8 warning.Tim Graham
2014-10-22Allowed test from refs #23612 to be run from a directory other than tests.Tim Graham
2014-10-23Improved warning message when reloading models. Refs #23621.Loic Bistuer
Thanks dfunckt and Tim Graham.
2014-10-23Fixed #23621 -- Warn for duplicate models when a module is reloaded.Loic Bistuer
Previously a RuntimeError was raised every time two models clashed in the app registry. This prevented reloading a module in a REPL; while it's not recommended to do so, we decided not to forbid this use-case by turning the error into a warning. Thanks @dfunckt and Sergey Pashinin for the initial patches.
2014-10-22Refactored color_style() and no_style() to improve testability. Refs #23663.Loic Bistuer
This includes the following improvements: - The type of the style object is now called 'Style' rather than 'dummy'. - The new make_style() function allows generating a Style object directly from a config string. Before the only way to get a style object was through the environ and it also required that the terminal supported colors which isn't necessarily the case when testing. - The output of no_style() is now cached with @lru_cache. - The output of no_style() now has the same set of attributes as the other Style objects. Previously it allowed anything to pass through with __getattr__.
2014-10-22Fixed #23686 -- Tweak color output of the system check framework.Loic Bistuer
Thanks Tim Graham for the review.
2014-10-22Made testing of stdout and stderr more consistent.Loic Bistuer
Refs #23663.
2014-10-22Fixed #23663 -- Initialize output streams for BaseCommand in __init__().Loic Bistuer
This helps with testability of management commands. Thanks to trac username daveoncode for the report and to Tim Graham and Claude Paroz for the reviews.
2014-10-21Fixed #23653 -- Fixed Windows failure of a logging test added in refs #23569.Tim Graham
2014-10-21Removed unneeded override_system_checksClaude Paroz
Refs #23685.
2014-10-21Fixed #23583 -- More selectively ignored static/media rootsClaude Paroz
Fixed a regression introduced by 28efafa24c. Thanks Michal Čihař for the report and initial patch, and Collin Anderson and Tim Graham for the reviews.
2014-10-22Fixed #23107 -- Made runserver output respect --no-color.Loic Bistuer
This commit reverts 67d7da5fb9498b811f0168f5df2308ad4743027f. The previous fix changed the environment globally, which meant that any call to `call_command(no_color=True)` prevented further `call_command` with color. This fix still relies on the environment because it's currently the only way to reach WSGIRequestHandler, but it's now limited to the `runserver` command. This seems an acceptable compromise considering `runserver` runs indefinitely. Thanks Tim Graham for the review.
2014-10-21Fixed #23695 -- Made condition decorator work for HEAD requests without ETag.Anton Novosyolov
2014-10-21Fixed #23396 -- Ensured ValueQuerySets are not checked by check_related_objects.Gabe Jackson
2014-10-21Fixed #21740 -- Allowed test client data to be an empty stringClaude Paroz
This fixes a regression introduced by 2a31d00933. Thanks tony-zhu for the report.
2014-10-20Fix SettingsCustomLoggingTest on Windows when path contains \uMichael Manfre
2014-10-20Fixed #23688 -- Updated cached_property to preserve docstring of original ↵John-Scott Atlakson
function
2014-10-20Fixed #20221 -- Allowed some functions that use mark_safe() to result in ↵Jon Dufresne
SafeText. Thanks Baptiste Mispelon for the report.
2014-10-20Fixed #23679 -- Fixed null introspection for char/text fieldsClaude Paroz
Thanks Paul Dejean for the report.
2014-10-20Fixed #23629 -- Allowed autodetector to detect changes in Meta.db_table.Tianyi Wang
Thanks Naddiseo for reporting.
2014-10-20Revert "Fixed #23650 -- Prevented migrate from calling checks 3 times"Claude Paroz
This reverts commit 8d6e1afe0be0570253a508f43e2ef89ae640984e. call_command now always set skip_checks to True (tested in user_commands).
2014-10-20Fixed #23685 -- Made call_command skip checks by defaultClaude Paroz
Thanks Loic Bistuer for the report/review and Tim Graham for the review.
2014-10-20Moved a test case that caused deprecation warnings.Loic Bistuer
`cache.tests.TestEtagWithAdmin` loaded views from the `admin_views` test package. This is problematic because when the `cache` test package is run in isolation, `admin_views` isn't in INSTALLED_APPS, and therefore loading its models isn't allowed since the app loading refactor.
2014-10-19Fixed #23684 -- Used correct package name for Pillow in Error hint.Nicholas Serra
2014-10-19Fixed #21196 -- Removed index on test field causing MySQL specific warning.Thomas Chaumeny
2014-10-17Fixed #23650 -- Prevented migrate from calling checks 3 timesClaude Paroz
Thanks Ilya Baryshev for the report and Tim Graham for the review.
2014-10-17Fixed #23469 -- Removed test runner compatibility check which often yielded ↵Tim Graham
false positives.
2014-10-16Fixed #23615 -- Validate that a Model instance's "check" attribute is a method.Rigel Di Scala
The "check" name is a reserved word used by Django's check framework, and cannot be redefined as something else other than a method, or the check framework will raise an error. This change amends the django.core.checks.model_check.check_all_models() function, so that it verifies that a model instance's attribute "check" is actually a method. This new check is assigned the id "models.E020".
2014-10-16Minor cleanup in the check_framework test package.Loic Bistuer
2014-10-16Fixed #23664 -- Provided a consistent definition for OrderedSet.__bool__Thomas Chaumeny
This also defines QuerySet.__bool__ for consistency though this should not have any consequence as bool(qs) used to fallback on QuerySet.__len__ in Py3.
2014-10-16Fixed #23659 -- Kept annotate() args orderingClaude Paroz
Thanks Loic Bistuer and Simon Charette for the review.
2014-10-15Fixed a flake8 warning.Simon Charette
2014-10-16Fixed #23660 -- Moved sort_dependencies to core.Collin Anderson
2014-10-16Fixed #19508 -- Implemented uri_to_iri as per RFC.Anubhav Joshi
Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz for the review.
2014-10-15Fixed remaining test failure in jslex tests.Florian Apolloner