Changes between Version 113 and Version 114 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
Jul 27, 2007, 11:11:01 PM (17 years ago)
Author:
Russell Keith-Magee
Comment:

Added note on change to first argument to run_test

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v113 v114  
    3131 * [5708] July 15, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#POfilesmustbeUTF-8encoded PO files must be UTF-8 encoded]
    3232 * [5752] July 23, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Addedinteractiveargumenttorun_tests Added `interactive` argument to `run_tests`]
     33 * [5769] July 28, 2007: [http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Changedformatforfirstargumenttorun_tests Changed format for first argument to `run_tests` ]
    3334
    3435== Database constraint names changed ==
     
    254255== Added `interactive` argument to `run_tests` ==
    255256
    256 In [5752] the parameter ``interactive`` was added to the run_tests method. This parameter allows tests to be added to automated build scripts where interactive questions (such as being asked if it is ok to delete an existing test database) cannot be asked.
     257In [5752] the parameter `interactive` was added to the run_tests method. This parameter allows tests to be added to automated build scripts where interactive questions (such as being asked if it is ok to delete an existing test database) cannot be asked.
    257258
    258259If you are using the default Django test runner, no change is required.
    259260
    260261However, if you have defined a custom test runner, you must be able to accept (and handle appropriately) the `interactive` argument to the test runner. For most test runners, the only change required will be to change the call to `create_test_db` to use the keyword argument `autoclobber=not interactive`.
     262
     263== Changed format for first argument to `run_tests` ==
     264
     265In [5769], the first argument to `run_tests` was changed to allow end-users to invoke individual tests, rather than requiring that entire applications be tested.
     266
     267This change has no effect on most end users. However, it does require a significant change to the prototype of run_test, which will be backwards incompatible for anyone with a customized test runner. Previously, the first argument to `run_tests` was a list of application modules. These modules would then be searched for test cases. After [5769], the first argument to `run_tests` is a list of test labels. Whereas run_tests was previously given a list of already-loaded applications, it is now the responsibility of the test runner to load the appropriate applications. Anyone with a customized test runner will need to incorporate the appropriate calls to `get_app()` as part of their test runner.
     268
Back to Top