Commit d112d13f authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

Flake8: fix F841 local variable assigned to but never used

parent 3d3fcd241dcb
......@@ -23,7 +23,6 @@ class EuserCalendar(EntityView):
def cell_call(self, row, col):
self._cw.add_css('cubes.calendar.css')
entity = self.cw_rset.get_entity(row, col)
_today = pydate.today()
firstday, lastday = get_date_range_from_reqform(self._cw.form,
autoset_lastday=True)
firstday = first_day(firstday)
......@@ -73,7 +72,6 @@ class EuserCalendar(EntityView):
else:
daytype, daytype_state = celldatas[curdate]
stickers = self._cw._(daytype.type)
pending = self._cw._('pending')
klasses = []
am_sticker = u''
......
......@@ -77,10 +77,10 @@ class DaytypeTests(CubicWebTC):
def test_daytype_timeperiod_afternoon_french_calendar(self):
with self.admin_access.repo_cnx() as cnx:
dtypes = []
t = cnx.create_entity('Timeperiod', start=datetime(2010, 8, 17, 14, 0),
stop=datetime(2010, 8, 17, 23, 59),
day_type=self._get_day_type(WAM),
reverse_periods=self.cal)
cnx.create_entity('Timeperiod', start=datetime(2010, 8, 17, 14, 0),
stop=datetime(2010, 8, 17, 23, 59),
day_type=self._get_day_type(WAM),
reverse_periods=self.cal)
cnx.commit() # trigger SetInitialStateOperation
dtypes = self._get_day_types(self.cal, date(2010, 8, 16),
date(2010, 8, 22))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment