Weather test is broken.... Still.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Entertainer Media Center |
Triaged
|
Medium
|
Unassigned |
Bug Description
Sorry Paul. I was running a `make check` for a code review and the weather test broke again. :( The output below shows nosetests, but the same failure occurred with trial. I just didn't want to paste in all the trial output for proof.
matt@eden:
Sun May 10 22:29:35 EDT 2009
matt@eden:
..F...
=======
FAIL: entertainerlib.
-------
Traceback (most recent call last):
File "/usr/lib/
testMethod()
File "/home/
self.
AssertionError: 'Sun' != 'Mon'
-------
Ran 6 tests in 1.685s
FAILED (failures=1)
matt@eden:
Sun May 10 22:29:56 EDT 2009
matt@eden:
# Copyright (c) 2009 Entertainer Developers - See COPYING - GPLv2
'''Tests Weather'''
from datetime import datetime, timedelta, tzinfo
from entertainerlib.
from entertainerlib.
class WeatherTest(
"""
WeatherTest class
Tests for the weather module.
"""
def setUp(self):
"""Sets up everything for the test"""
def tearDown(self):
"""Clean up after the test"""
def testWeatherFind
"""Tests the weather code using a call to the outside world"""
class EnglandTimeZone
'''An implementation of tzinfo specific to England.'''
def __init__(self):
def __repr__(self):
def _first_
if days_to_go:
def tzname(self, dt):
if self.dst(dt):
def utcoffset(self, dt):
def dst(self, dt):
if dt is None or dt.tzinfo is None:
end = self._first_
if start <= dt.replace(
england = EnglandTimeZone()
forecasts = self.weather.
today = forecasts[0]
day = datetime.
.
.
.
matt@eden:
Changed in entertainer: | |
assignee: | Paul Hummer (rockstar) → nobody |
Paul, I'm assigning this to you because you have the most knowledge with this test and probably the best chance of fixing it. Plus, I know that it will probably piss you off to see this thing broken again so you'd probably be the most motivated to get it working too. :D
I didn't set it for 0.5 because I don't know how high a priority it should be in light of the other things that are being worked on.