Ticket #12640: 12640.diff

File 12640.diff, 2.2 KB (added by Ramiro Morales, 15 years ago)
  • django/test/simple.py

    diff -r 0b171fe8b1bc django/test/simple.py
    a b  
    124124    return suite
    125125
    126126def build_test(label):
    127     """Construct a test case a test with the specified label. Label should
    128     be of the form model.TestClass or model.TestClass.test_method. Returns
    129     an instantiated test or test suite corresponding to the label provided.
     127    """Construct a test case with the specified label. Label should be of the
     128    form model.TestClass or model.TestClass.test_method. Returns an
     129    instantiated test or test suite corresponding to the label provided.
    130130
    131131    """
    132132    parts = label.split('.')
     
    271271        """
    272272        self.setup_test_environment()
    273273
     274        suite = self.build_suite(test_labels, extra_tests)
     275
    274276        old_names = self.setup_databases()
    275277
    276         suite = self.build_suite(test_labels, extra_tests)
    277 
    278278        result = self.run_suite(suite)
    279279
    280280        self.teardown_databases(old_names)
  • docs/topics/testing.txt

    diff -r 0b171fe8b1bc docs/topics/testing.txt
    a b  
    12331233
    12341234    #. Performing global pre-test setup.
    12351235
     1236    #. Looking for unit tests and doctests in the ``models.py`` and
     1237       ``tests.py`` files in each installed application.
     1238
    12361239    #. Creating the test databases.
    12371240
    12381241    #. Running ``syncdb`` to install models and initial data into the test
    12391242       databases.
    12401243
    1241     #. Looking for unit tests and doctests in the ``models.py`` and
    1242        ``tests.py`` files in each installed application.
    1243 
    12441244    #. Running the unit tests and doctests that are found.
    12451245
    12461246    #. Destroying the test databases.
  • tests/modeltests/model_package/tests.py

    diff -r 0b171fe8b1bc tests/modeltests/model_package/tests.py
    a b  
    3737>>> a.sites.count()
    38381
    3939
    40 # Regression for #12248 - Models can exist in the test package, too
     40# Regression for #12245 - Models can exist in the test package, too
    4141
    4242>>> ad = Advertisment(customer="Lawrence Journal-World")
    4343>>> ad.save()
Back to Top