comparison rhodecode/tests/functional/test_journal.py @ 3159:4910b2607a29 beta

fixes issue #658, my account edit was missing this functionality
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 10 Jan 2013 23:09:17 +0100
parents 25029d6f4b47
children d7488551578e
comparison
equal deleted inserted replaced
3158:55ff0b9ef89e 3159:4910b2607a29
8 8
9 def test_index(self): 9 def test_index(self):
10 self.log_user() 10 self.log_user()
11 response = self.app.get(url(controller='journal', action='index')) 11 response = self.app.get(url(controller='journal', action='index'))
12 12
13 # Test response... 13 response.mustcontain("""<div class="journal_day">%s</div>""" % datetime.date.today())
14 assert """ <span id="follow_toggle_1" class="following" title="Stop following this repository""" in response.body, 'no info about stop follwoing repo id 1'
15
16 assert """<div class="journal_day">%s</div>""" % datetime.date.today() in response.body, 'no info about action journal day'
17 14
18 def test_stop_following_repository(self): 15 def test_stop_following_repository(self):
19 session = self.log_user() 16 session = self.log_user()
20 # usr = self.Session.query(User).filter(User.username == 'test_admin').one() 17 # usr = self.Session.query(User).filter(User.username == 'test_admin').one()
21 # repo = self.Session.query(Repository).filter(Repository.repo_name == HG_REPO).one() 18 # repo = self.Session.query(Repository).filter(Repository.repo_name == HG_REPO).one()