
import os
import sys
import string

def main():
  """
  Executes the tests.  Requires the CherryPy live server to be installed.
  """
  command = "python manage.py test"
  options = "--exe --with-selenium --with-selenium-fixtures --with-cherrypyliveserver"
  apps = []
  if len(sys.argv) > 1:
    apps = sys.argv[1:]
    
  os.system(command + " " + string.join(apps, " ") + " " + options)

if __name__ == "__main__":
  main()

import os
import sys
import string

def main():
  """
  Executes the tests.  Requires the CherryPy live server to be installed.
  """
  command = "python manage.py test"
  options = "--exe --with-selenium --with-selenium-fixtures --with-cherrypyliveserver --noinput"
  apps = []
  if len(sys.argv) > 1:
    apps = sys.argv[1:]
    
  os.system(command + " " + string.join(apps, " ") + " " + options)

if __name__ == "__main__":
  main()
Update to the run tests script to force database deletion if the test database exists.
Update to the run tests script to force database deletion if the test database exists.

  
  import os
  import sys
  import string
  
  def main():
    """
    Executes the tests.  Requires the CherryPy live server to be installed.
    """
    command = "python manage.py test"
-   options = "--exe --with-selenium --with-selenium-fixtures --with-cherrypyliveserver"
+   options = "--exe --with-selenium --with-selenium-fixtures --with-cherrypyliveserver --noinput"
    apps = []
    if len(sys.argv) > 1:
      apps = sys.argv[1:]
      
    os.system(command + " " + string.join(apps, " ") + " " + options)
  
  if __name__ == "__main__":
    main()
Update to the run tests script to force database deletion if the test database exists.
## Code Before:

import os
import sys
import string

def main():
  """
  Executes the tests.  Requires the CherryPy live server to be installed.
  """
  command = "python manage.py test"
  options = "--exe --with-selenium --with-selenium-fixtures --with-cherrypyliveserver"
  apps = []
  if len(sys.argv) > 1:
    apps = sys.argv[1:]
    
  os.system(command + " " + string.join(apps, " ") + " " + options)

if __name__ == "__main__":
  main()
## Instruction:
Update to the run tests script to force database deletion if the test database exists.
## Code After:

import os
import sys
import string

def main():
  """
  Executes the tests.  Requires the CherryPy live server to be installed.
  """
  command = "python manage.py test"
  options = "--exe --with-selenium --with-selenium-fixtures --with-cherrypyliveserver --noinput"
  apps = []
  if len(sys.argv) > 1:
    apps = sys.argv[1:]
    
  os.system(command + " " + string.join(apps, " ") + " " + options)

if __name__ == "__main__":
  main()