Code

Ticket #7534: utf8-test-db-setting-result.txt

File utf8-test-db-setting-result.txt, 6.6 KB (added by Peter Melvyn <peter.melvyn@…>, 6 years ago)

settings.TEST_DATABASE_CHARSET=UTF8

Line 
1======================================================================
2FAIL: Doctest: modeltests.serializers.models.__test__.API_TESTS
3----------------------------------------------------------------------
4Traceback (most recent call last):
5  File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 2180, in runTest
6    raise self.failureException(self.format_failure(new.getvalue()))
7AssertionError: Failed doctest test for modeltests.serializers.models.__test__.API_TESTS
8  File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line unknown line number, in API_TESTS
9
10----------------------------------------------------------------------
11File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
12Failed example:
13    for obj in serializers.deserialize("json", json):
14        obj.save()
15Exception raised:
16    Traceback (most recent call last):
17      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
18        compileflags, 1) in test.globs
19      File "<doctest modeltests.serializers.models.__test__.API_TESTS[42]>", line 2, in ?
20        obj.save()
21      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\base.py", line 168, in save
22        models.Model.save_base(self.object, raw=True)
23      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\base.py", line 334, in save_base
24        result = manager._insert(values, return_id=update_pk)
25      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\manager.py", line 127, in _insert
26        return insert_query(self.model, values, **kwargs)
27      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 831, in insert_query
28        return query.execute_sql(return_id)
29      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\subqueries.py", line 300, in execute_sql
30        cursor = super(InsertQuery, self).execute_sql(None)
31      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 1474, in execute_sql
32        cursor.execute(sql, params)
33      File "C:\Python24\Lib\site-packages\MySQLdb\cursors.py", line 166, in execute
34        self.errorhandler(self, exc, value)
35      File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
36        raise errorclass, errorvalue
37    IntegrityError: (1452, 'Cannot add or update a child row: a foreign key constraint fails (`test_bizwss/serializers_article`, CONSTRAINT `author_id_refs_id_8fd3731` FOREIGN KEY (`author_id`) REFERENCES `serializers_author` (`id`))')
38----------------------------------------------------------------------
39File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
40Failed example:
41    article = Article.objects.get(pk=3)
42Exception raised:
43    Traceback (most recent call last):
44      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
45        compileflags, 1) in test.globs
46      File "<doctest modeltests.serializers.models.__test__.API_TESTS[45]>", line 1, in ?
47        article = Article.objects.get(pk=3)
48      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\manager.py", line 82, in get
49        return self.get_query_set().get(*args, **kwargs)
50      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 282, in get
51        raise self.model.DoesNotExist("%s matching query does not exist."
52    DoesNotExist: Article matching query does not exist.
53----------------------------------------------------------------------
54File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
55Failed example:
56    article
57Exception raised:
58    Traceback (most recent call last):
59      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
60        compileflags, 1) in test.globs
61      File "<doctest modeltests.serializers.models.__test__.API_TESTS[46]>", line 1, in ?
62        article
63    NameError: name 'article' is not defined
64----------------------------------------------------------------------
65File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
66Failed example:
67    article.categories.all()
68Exception raised:
69    Traceback (most recent call last):
70      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
71        compileflags, 1) in test.globs
72      File "<doctest modeltests.serializers.models.__test__.API_TESTS[47]>", line 1, in ?
73        article.categories.all()
74    NameError: name 'article' is not defined
75----------------------------------------------------------------------
76File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
77Failed example:
78    article.author
79Exception raised:
80    Traceback (most recent call last):
81      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
82        compileflags, 1) in test.globs
83      File "<doctest modeltests.serializers.models.__test__.API_TESTS[48]>", line 1, in ?
84        article.author
85    NameError: name 'article' is not defined
86----------------------------------------------------------------------
87File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
88Failed example:
89    print serializers.serialize("json", Article.objects.all(), fields=('headline','pub_date'))
90Expected:
91    [{"pk": 1, "model": "serializers.article", "fields": {"headline": "Just kidding; I love TV poker", "pub_date": "2006-06-16 11:00:00"}}, {"pk": 2, "model": "serializers.article", "fields": {"headline": "Time to reform copyright", "pub_date": "2006-06-16 13:00:11"}}, {"pk": 3, "model": "serializers.article", "fields": {"headline": "Forward references pose no problem", "pub_date": "2006-06-16 15:00:00"}}]
92Got:
93    [{"pk": 1, "model": "serializers.article", "fields": {"headline": "Just kidding; I love TV poker", "pub_date": "2006-06-16 11:00:00"}}, {"pk": 2, "model": "serializers.article", "fields": {"headline": "Time to reform copyright", "pub_date": "2006-06-16 13:00:11"}}]
94
95
96----------------------------------------------------------------------
97Ran 2 tests in 1.125s
98
99FAILED (failures=1)