• Loic Bistuer's avatar
    Refactored color_style() and no_style() to improve testability. Refs #23663. · eb82fb0a
    Loic Bistuer yazdı
    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__.
    eb82fb0a
Adı
Son kayıt (commit)
Son güncelleme
..
app_raising_messages Loading commit data...
app_raising_warning Loading commit data...
app_with_import Loading commit data...
broken_app Loading commit data...
complex_app Loading commit data...
custom_templates Loading commit data...
management Loading commit data...
simple_app Loading commit data...
__init__.py Loading commit data...
models.py Loading commit data...
tests.py Loading commit data...
urls.py Loading commit data...