1. Ramiro Morales
  2. django-sqlserver
  3. Issues
Issue #2 resolved

Fix django test on ado

Mikhail Denisenko
created an issue
Traceback (most recent call last):
  File "env\src\django\tests\runtests.py", line 337, in <module>
    options.failfast, args)
  File "env\src\django\tests\runtests.py", line 180, in django_tests
    failures = test_runner.run_tests(test_labels, extra_tests=extra_tests)
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\test\simple.py", line 370, in run_tests
    old_config = self.setup_databases()
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\test\simple.py", line 315, in setup_databases
    self.verbosity, autoclobber=not self.interactive)
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\db\backends\creation.py", line 303, in create_test_db
    database=self.connection.alias)
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\core\management\__init__.py", line 161, in call_command
    return klass.execute(*args, **defaults)
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\core\management\base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\core\management\base.py", line 385, in handle
    return self.handle_noargs(**options)
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\core\management\commands\flush.py", line 89, in handle_noargs
    call_command('loaddata', 'initial_data', **options)
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\core\management\__init__.py", line 161, in call_command
    return klass.execute(*args, **defaults)
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\core\management\base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\core\management\commands\loaddata.py", line 114, in handle
    with connection.constraint_checks_disabled():
  File "C:\Apps\User_Installs\Python27\Lib\contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "c:\users\denisenk\jenkins\workspace\sqlserver-win\backend\sqlserver.ado\python\2.7x64\label\win\env\src\django\django\db\backends\__init__.py", line 287, in constraint_checks_disabled
    disabled = self.disable_constraint_checking()
  File "C:\Users\denisenk\jenkins\workspace\sqlserver-win\BACKEND\sqlserver.ado\PYTHON\2.7x64\label\win\sqlserver\base.py", line 153, in disable_constraint_checking
    while cursor.nextset():
  File "C:\Users\denisenk\jenkins\workspace\sqlserver-win\BACKEND\sqlserver.ado\PYTHON\2.7x64\label\win\sqlserver\ado\dbapi.py", line 600, in nextset
    self._raiseCursorError(Error, None)
  File "C:\Users\denisenk\jenkins\workspace\sqlserver-win\BACKEND\sqlserver.ado\PYTHON\2.7x64\label\win\sqlserver\ado\dbapi.py", line 375, in _raiseCursorError
    eh(self.connection, self, errorclass, errorvalue)
  File "C:\Users\denisenk\jenkins\workspace\sqlserver-win\BACKEND\sqlserver.ado\PYTHON\2.7x64\label\win\sqlserver\ado\dbapi.py", line 100, in standardErrorHandler
    raise errorclass(errorvalue)
sqlserver.ado.dbapi.Error: None