List Info

Thread: Test Failures And Date Stamps




Test Failures And Date Stamps
user name
2006-11-16 07:09:14
I'm trying to set up Planet Venus on a Fedora Core 1 machine
with  
Python 2.2.3. I can run planet.py and generate the site
successfully  
but all the entry dates are set to when they were downloaded
by Venus  
rather than the date specified in the feeds. Is it supposed
to work  
this way? Is there anyway to make it not work this way? The
dates are  
inserted via a <TMPL_VAR date>.

If it's not just a configuration option, then the test
failures I'm  
seeing are likely very important (they probably are anyway).
I've  
included the output below - it would be comforting to get
all the  
tests passing if possible.

Let me know what other information I can provide to help if
needed.

Thanks in advance,

Adrian Sutton
http://www.symphonious.net



Popen is not available => can't test standard filters
Redland RDF is not available => can't test FOAF reading
lists
............................................................
............ 
..F.........................E.......EE......................
............ 
.............E....
============================================================
==========
ERROR: test_planet_name
(tests.test_filter_tmpl.FilterTmplTest)
------------------------------------------------------------
----------
Traceback (most recent call last):
   File "/home/aj/test.symphonious.net/venus/tests/ 
test_filter_tmpl.py", line 58, in <lambda>
     func = lambda self, name=root: self.eval_feed(name)
   File "/home/aj/test.symphonious.net/venus/tests/ 
test_filter_tmpl.py", line 29, in eval_feed
     self.assertTrue(eval(expect, results), expect)
   File "<string>", line 0, in ?
KeyError: channel_name

============================================================
==========
ERROR: test_source_planet_message  
(tests.test_filter_tmpl.FilterTmplTest)
------------------------------------------------------------
----------
Traceback (most recent call last):
   File "/home/aj/test.symphonious.net/venus/tests/ 
test_filter_tmpl.py", line 58, in <lambda>
     func = lambda self, name=root: self.eval_feed(name)
   File "/home/aj/test.symphonious.net/venus/tests/ 
test_filter_tmpl.py", line 29, in eval_feed
     self.assertTrue(eval(expect, results), expect)
   File "<string>", line 0, in ?
KeyError: channel_message

============================================================
==========
ERROR: test_source_planet_name
(tests.test_filter_tmpl.FilterTmplTest)
------------------------------------------------------------
----------
Traceback (most recent call last):
   File "/home/aj/test.symphonious.net/venus/tests/ 
test_filter_tmpl.py", line 58, in <lambda>
     func = lambda self, name=root: self.eval_feed(name)
   File "/home/aj/test.symphonious.net/venus/tests/ 
test_filter_tmpl.py", line 29, in eval_feed
     self.assertTrue(eval(expect, results), expect)
   File "<string>", line 0, in ?
KeyError: channel_name

============================================================
==========
ERROR: test_xslt_filter
(tests.test_filter_xslt.XsltFilterTests)
------------------------------------------------------------
----------
Traceback (most recent call last):
   File "/home/aj/test.symphonious.net/venus/tests/ 
test_filter_xslt.py", line 14, in test_xslt_filter
     dom = xml.dom.minidom.parseString(output)
   File
"/usr/lib/python2.2/site-packages/_xmlplus/dom/minidom.
py",  
line 1925, in parseString
     return expatbuilder.parseString(string)
   File "/usr/lib/python2.2/site-packages/_xmlplus/dom/

expatbuilder.py", line 942, in parseString
     return builder.parseString(string)
   File "/usr/lib/python2.2/site-packages/_xmlplus/dom/

expatbuilder.py", line 223, in parseString
     parser.Parse(string, True)
ExpatError: not well-formed (invalid token): line 1, column
8

============================================================
==========
FAIL: test_apply_asf (tests.test_apply.ApplyTest)
------------------------------------------------------------
----------
Traceback (most recent call last):
   File
"/home/aj/test.symphonious.net/venus/tests/test_apply.p
y",  
line 48, in test_apply_asf
     self.assertEqual(3, lang)
   File "/usr/lib/python2.2/unittest.py", line
286, in failUnlessEqual
     raise self.failureException, 
AssertionError: 3 != 0

------------------------------------------------------------
----------
Ran 162 tests in 8.801s

FAILED (failures=1, errors=4)

-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel
Test Failures And Date Stamps
user name
2006-11-16 21:03:36
Adrian Sutton wrote:
> I'm trying to set up Planet Venus on a Fedora Core 1
machine with Python 
> 2.2.3. I can run planet.py and generate the site
successfully but all 
> the entry dates are set to when they were downloaded by
Venus rather 
> than the date specified in the feeds. Is it supposed to
work this way? 
> Is there anyway to make it not work this way? The dates
are inserted via 
> a <TMPL_VAR date>.

This is probably the bug that Harry Fuecks just identified.

> If it's not just a configuration option, then the test
failures I'm 
> seeing are likely very important (they probably are
anyway). I've 
> included the output below - it would be comforting to
get all the tests 
> passing if possible.

Can you take a look at the Python 2.2 instructions at the
bottom of the 
following page to see if this helps?

http://intertwingly.net/code/venus/docs/installation.ht
ml

> Let me know what other information I can provide to
help if needed.
> 
> Thanks in advance,
> 
> Adrian Sutton
> http://www.symphonious.net


- Sam Ruby
-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )