コード例 #1
0
 def runTest(self):
     team_name = 'team_for_capacity_saving'
     member_name = 'Team member_name'
     sprint_name = 'capacity_saving_sprint'
     
     self._tester.login_as(Usernames.admin)
     self._tester.create_new_team(team_name)
     self._tester.add_member_to_team(team_name, member_name)
     sprint_start = now()
     self._tester.create_sprint_via_admin(sprint_name, start=sprint_start, team=team_name)
     
     # having tasks with remaining time which were not assigned to a specific
     # user triggered another bug on the team page.
     attributes = dict(sprint=sprint_name, remaining_time='12')
     self._tester.create_new_agilo_task('Not assigned Task', **attributes)
     
     self._tester.login_as(Usernames.scrum_master)
     self._tester.go_to_team_page(team_name, sprint_name)
     team_page_url = tc.get_browser().get_url()
     
     day_ordinal = (sprint_start + timedelta(days=3)).toordinal()
     input_name = 'ts_%s_%d' % (member_name, day_ordinal)
     tc.formvalue('team_capacity_form', input_name, '2')
     tc.submit('save')
     tc.code(200)
     tc.url(team_page_url)
コード例 #2
0
ファイル: agilo_environment.py プロジェクト: djangsters/agilo
 def _disable_xhtml_validation(self):
     # We need to disable trac's validation of the returned HTML pages 
     # because we generate invalid xhtml sometimes (e.g. custom attributes
     # in the search input field, ul elements without li).
     # In the old suite this worked implicitely because we reset the browser
     # in the beginning.
     b = tc.get_browser()
     # TODO: This is a bit brutal right now but actually there are no other
     # post load hooks used right now. Refine if necessary.
     b._post_load_hooks = []
コード例 #3
0
ファイル: agilo_environment.py プロジェクト: nagyist/agilo
 def _disable_xhtml_validation(self):
     # We need to disable trac's validation of the returned HTML pages
     # because we generate invalid xhtml sometimes (e.g. custom attributes
     # in the search input field, ul elements without li).
     # In the old suite this worked implicitely because we reset the browser
     # in the beginning.
     b = tc.get_browser()
     # TODO: This is a bit brutal right now but actually there are no other
     # post load hooks used right now. Refine if necessary.
     b._post_load_hooks = []
コード例 #4
0
 def runTest(self):
     self.tester.go_to_product_backlog()
     story_as_dict = self.story.as_dict()
     from agilo.ticket import AgiloTicketSystem
     if AgiloTicketSystem.is_trac_1_0():
         from trac.util.datefmt import to_utimestamp
         story_as_dict.update({'view_time': str(to_utimestamp(self.story.time_changed))})
     if story_as_dict.has_key('description'):
         del story_as_dict['description']
     data = json.dumps(story_as_dict)
     import trac.util
     escaped_data = trac.util.escape(data)
     page = tc.get_browser().get_html()
     self.assert_(str(escaped_data) in page, "Metadata error")
コード例 #5
0
 def runTest(self):
     self.tester.go_to_product_backlog()
     story_as_dict = self.story.as_dict()
     from agilo.ticket import AgiloTicketSystem
     if AgiloTicketSystem.is_trac_1_0():
         from trac.util.datefmt import to_utimestamp
         story_as_dict.update(
             {'view_time': str(to_utimestamp(self.story.time_changed))})
     if story_as_dict.has_key('description'):
         del story_as_dict['description']
     data = json.dumps(story_as_dict)
     import trac.util
     escaped_data = trac.util.escape(data)
     page = tc.get_browser().get_html()
     self.assert_(str(escaped_data) in page, "Metadata error")