Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
adding logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-gravgaard committed Dec 18, 2013
1 parent 87e26f8 commit d2efbcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/steps/splinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from backdrop.core.timeutils import utc

import logging


@given(u'a file named "{filename}" with fixture "{fixturename}"')
def step(context, filename, fixturename):
Expand Down Expand Up @@ -48,6 +50,7 @@ def step(context, message):
@then(u'I should not see the text "{message}"')
def step(context, message):
success = not context.client.browser.is_text_present(message)
logging.error('browser.html: ' + browser.html)
if not success:
raise Exception('browser.html: ' + browser.html)
assert success
Expand Down

0 comments on commit d2efbcb

Please sign in to comment.