1 | manage.py test -v2
|
---|
2 | Creating test database for alias 'mysite' (':memory:')...
|
---|
3 | Operations to perform:
|
---|
4 | Apply all migrations: admin, contenttypes, sites, auth, sessions
|
---|
5 | Running migrations:
|
---|
6 | Applying contenttypes.0001_initial... OK
|
---|
7 | Applying auth.0001_initial... OK
|
---|
8 | Applying admin.0001_initial... OK
|
---|
9 | Applying sessions.0001_initial... OK
|
---|
10 | Applying sites.0001_initial... OK
|
---|
11 | ERROR
|
---|
12 |
|
---|
13 | ======================================================================
|
---|
14 | ERROR: test_pouet (mysite.tests.MyTestCase)
|
---|
15 | ----------------------------------------------------------------------
|
---|
16 | Traceback (most recent call last):
|
---|
17 | File "/Users/thomas/dev/django/django/test/testcases.py", line 182, in __call__
|
---|
18 | self._pre_setup()
|
---|
19 | File "/Users/thomas/dev/django/django/test/testcases.py", line 754, in _pre_setup
|
---|
20 | self._fixture_setup()
|
---|
21 | File "/Users/thomas/dev/django/django/test/testcases.py", line 887, in _fixture_setup
|
---|
22 | if not connections_support_transactions():
|
---|
23 | File "/Users/thomas/dev/django/django/test/testcases.py", line 874, in connections_support_transactions
|
---|
24 | for conn in connections.all())
|
---|
25 | File "/Users/thomas/dev/django/django/test/testcases.py", line 874, in <genexpr>
|
---|
26 | for conn in connections.all())
|
---|
27 | File "/Users/thomas/dev/django/django/utils/functional.py", line 55, in __get__
|
---|
28 | res = instance.__dict__[self.func.__name__] = self.func(instance)
|
---|
29 | File "/Users/thomas/dev/django/django/db/backends/__init__.py", line 782, in supports_transactions
|
---|
30 | self.connection.leave_transaction_management()
|
---|
31 | File "/Users/thomas/dev/django/django/db/backends/__init__.py", line 338, in leave_transaction_management
|
---|
32 | if managed == self.get_autocommit():
|
---|
33 | File "/Users/thomas/dev/django/django/db/backends/__init__.py", line 345, in get_autocommit
|
---|
34 | self.ensure_connection()
|
---|
35 | File "/Users/thomas/dev/django/django/db/backends/__init__.py", line 133, in ensure_connection
|
---|
36 | self.connect()
|
---|
37 | File "/Users/thomas/dev/django/django/db/utils.py", line 86, in __exit__
|
---|
38 | db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
|
---|
39 | AttributeError: 'DatabaseWrapper' object has no attribute 'Database'
|
---|
40 |
|
---|
41 | ----------------------------------------------------------------------
|
---|
42 | Ran 0 tests in 0.001s
|
---|
43 |
|
---|
44 | FAILED (errors=1)
|
---|
45 | Destroying test database for alias 'mysite' (':memory:')...
|
---|