Skip to content

Commit

Permalink
added missing import of logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Schneider committed Jan 24, 2017
1 parent cef1697 commit 552cf9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DatabaseLibrary/assertion.py
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from robot.api import logger

class Assertion(object):
"""
Assertion handles all the assertions of Database Library.
Expand All @@ -35,7 +37,7 @@ def check_if_exists_in_database(self,selectStatement):
| Check If Exists In Database | SELECT id FROM person WHERE first_name = 'Franz Allan' | # PASS |
| Check If Exists In Database | SELECT id FROM person WHERE first_name = 'John' | # FAIL |
"""
logger.info('Executing : Check If Exists In Database | %s ' % (selectStatement))
logger.info ('Executing : Check If Exists In Database | %s ' % (selectStatement))
if not self.query(selectStatement):
raise AssertionError("Expected to have have at least one row from '%s' "
"but got 0 rows." % selectStatement)
Expand Down

0 comments on commit 552cf9d

Please sign in to comment.