0

Ubuntu 13.04 - Python 2.7.4 - Django 1.4.5 - Satchmo_Store 0.9.3

当我运行 Satchmo 的第二次安装测试时,它向我显示以下两个错误,在我看来是相同的错误。无论哪种方式,我都不太了解它试图告诉我什么或如何修复它——

root@10:/home/ubuntu/src/satchmo/scripts/store# python manage.py test
Creating test database for alias 'default'...
FAIL: test_sitemap_index_with_https_request (django.contrib.sitemaps.tests.https.HTTPSDetectionSitemapTests)
A sitemap index requested in HTTPS is rendered with HTTPS links
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/contrib/sitemaps/tests/https.py", line 40, in test_sitemap_index_with_https_request
    """ % self.base_url.replace('http://', 'https://'))
AssertionError: '' != '<?xml version="1.0" encoding="UTF-8"?>\n<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n<sitemap><loc>https://example.com/simple/sitemap-simple.xml</loc></sitemap>\n</sitemapindex>\n'

  ----------------------------------------------------------------------
Ran 646 tests in 400.243s

FAILED (failures=2, skipped=2)
Destroying test database for alias 'default'...
root@10:/home/ubuntu/src/satchmo/scripts/store#

我非常感谢您的帮助、洞察力和想法!谢谢!

4

1 回答 1

0

它告诉你 emty 字符串不等于这个: ?xml version="1.0" encoding="UTF-8"?>\n\n https://example.com/simple/sitemap-simple.xml \n\ n

很可能您的环境未完全设置或测试中有错误

于 2013-08-26T00:00:59.410 回答