ability to log spent time on an issue
This commit is contained in:
parent
4336da6224
commit
b9bba5924a
4 changed files with 26 additions and 4 deletions
|
|
@ -262,4 +262,13 @@ class IssuePage(NewIssuePage):
|
|||
|
||||
return params
|
||||
|
||||
class IssueLogTimePage(BasePage):
|
||||
def logtime(self, hours, message):
|
||||
self.browser.select_form(predicate=lambda form: form.attrs.get('action', '').endswith('/edit'))
|
||||
self.browser['time_entry[hours]'] = '%.2f' % hours
|
||||
self.browser['time_entry[comments]'] = message.encode('utf-8')
|
||||
self.browser['time_entry[activity_id]'] = ['8']
|
||||
self.browser.submit()
|
||||
|
||||
class IssueTimeEntriesPage(BasePage):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue