django/tests/admin_scripts
Loic Bistuer eb82fb0a9d Refactored color_style() and no_style() to improve testability. Refs #23663.
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-22 11:27:00 +07:00
..
app_raising_messages Fixed #16905 -- Added extensible checks (nee validation) framework 2014-01-20 10:45:21 +08:00
app_raising_warning Fixed #16905 -- Added extensible checks (nee validation) framework 2014-01-20 10:45:21 +08:00
app_with_import Advanced deprecation warnings for Django 1.7. 2013-06-29 18:49:37 +02:00
broken_app Fixed #21302 -- Fixed unused imports and import *. 2013-11-02 15:24:56 -04:00
complex_app Fixed #22835 -- Deprecated NoArgsCommand. 2014-06-19 08:54:59 -04:00
custom_templates Fixed #22699 -- Configure default settings in some management commands. 2014-05-27 21:43:52 +02:00
management Fixed #23663 -- Initialize output streams for BaseCommand in __init__(). 2014-10-22 09:25:50 +07:00
simple_app Fixed #22835 -- Deprecated NoArgsCommand. 2014-06-19 08:54:59 -04:00
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
tests.py Refactored color_style() and no_style() to improve testability. Refs #23663. 2014-10-22 11:27:00 +07:00
urls.py Fixed #23276 -- Deprecated passing views as strings to url(). 2014-08-12 13:15:40 -04:00