runtests on Venus install
Amit Chakradeo (अमित चक्रदेव)
chakradeo+planet at gmail.com
Wed Feb 17 05:27:37 EST 2010
I have a patch which fixes the django template errors. You can either use
attached patch or pull from http://chakradeo.net/venus/venus/
<http://chakradeo.net/venus/venus/>
=== modified file 'planet/shell/dj.py'
--- planet/shell/dj.py 2007-07-07 22:53:41 +0000
+++ planet/shell/dj.py 2010-02-16 18:03:41 +0000
@@ -19,6 +19,7 @@
# I need to re-import the settings at every call because I have to
# set the TEMPLATE_DIRS variable programmatically
from django.conf import settings
+ settings._wrapped=None
try:
settings.configure(
DEBUG=True, TEMPLATE_DEBUG=True,
=== modified file 'tests/test_filter_django.py'
--- tests/test_filter_django.py 2007-07-05 19:01:19 +0000
+++ tests/test_filter_django.py 2010-02-16 18:18:32 +0000
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# coding: utf-8
import os.path
import unittest, xml.dom.minidom, datetime
@@ -24,7 +25,7 @@
input = feed.read(); feed.close()
results = dj.run(
os.path.realpath('tests/data/filter/django/title.html.dj'),
input)
- self.assertEqual(results, "\xc2\xa1Atom-Powered Robots Run
Amok!\n")
+ self.assertEqual(results, u"ĄAtom-Powered Robots Run Amok!\n")
def test_django_config_context(self):
config.load('tests/data/filter/django/test.ini')
Thanks!
--Amit
On Tue, Feb 16, 2010 at 1:36 AM, david.levy at tiscali.co.uk <
david.levy at tiscali.co.uk> wrote:
> You'll need to install xspltproc, which if I remember correctly, with
> Ubuntu, will make the xslt and libxml error lines disappear. If you want a
> FOAF version of the subscription lists, you'll need Redland RDF and its
> python bindings. I have never installed Genshi and don't know what it does.
>
> I have never had django installed, so I don't know the tests or code, and
> thus can't help you decode the error. Sorry.
>
> I don't think it'll work without the xslt and libxml packages.
>
> ----Original Message----
> From: ric.rossi at gmail.com
> Date: 16/02/2010 1:15
> To: <devel at lists.planetplanet.org>
> Subj: runtests on Venus install
>
> Hi,
> I'm kind of new to the PlanetPlanet stuff... I', trying to install it. Upon
> launching "runtests.py" I quite didn't have an OK responce. So I guess I'm
> not good to go! Below it's the responce I had with the test. Anyone can
> help?
> Thanks in advance,
> Ric
> ----------------
>
>
>
> libxml2 is not available => can't test xpath_sifter
> libxslt is not available => can't test xslt filters
> Genshi is not available => can't test genshi filters
> Redland RDF is not available => can't test FOAF reading lists
> xsltproc is not available => can't test XSLT templates
>
> ...............................................................................................................................................................................................E...........
> ======================================================================
> ERROR: test_django_entry_title (tests.test_filter_django.DjangoFilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/mare/mappacervelli.org/venus/tests/test_filter_django.py",
> line 25, in test_django_entry_title
> results = dj.run(
> File "/home/mare/mappacervelli.org/venus/planet/shell/dj.py", line 25,
> in run
> TEMPLATE_DIRS=(os.path.dirname(script),)
> File "/var/lib/python-support/python2.4/django/conf/__init__.py", line
> 49, in configure
> raise RuntimeError, 'Settings already configured.'
> RuntimeError: Settings already configured.
>
> ----------------------------------------------------------------------
> Ran 203 tests in 8.865s
>
>
>
>
>
> --
> devel mailing list
> devel at lists.planetplanet.org
> http://lists.planetplanet.org/mailman/listinfo/devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </archives/devel/attachments/20100216/4a23deee/attachment.html>
More information about the devel
mailing list