#12288: Validate that values in INSTALLED_APPS are unique
-------------------------------------+-------------------------------------
     Reporter:  Piotr Czachur        |                    Owner:  nobody
  <zimnyx@…>                         |                   Status:  new
         Type:                       |                  Version:  master
  Cleanup/optimization               |               Resolution:
    Component:  Core (Other)         |             Triage Stage:  Accepted
     Severity:  Normal               |      Needs documentation:  0
     Keywords:  sprint200912         |  Patch needs improvement:  0
    Has patch:  0                    |                    UI/UX:  0
  Needs tests:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by susan):

 @Timo, I'm fairly new to writing tests in Django. Should the new test be
 added in tests/settings_tests?

 In principle, the test would look like this (and feel free to correct me
 if I'm wrong):

 {{{
 from settings import INSTALLED_APPS

 def test_unique_installed_apps(TestCase):
    self.assertEqual(len(INSTALLED_APPS), len(set(INSTALLED_APPS))
 }}}

 I'm not quite sure of the package names and the details that this test
 would require. What are your thoughts?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/12288#comment:16>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/090.c6c3a7a871ecc6fc9c4d90d742c64b66%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to