@@ -28,12 +28,12 @@ def check_if_exists_in_database(self,selectStatement):
2828        |  1 | Franz Allan | See       | 
2929
3030        When you have the following assertions in your robot 
31-         | Check If Exists In Database | select  id from  person where  first_name = 'Franz Allan' | 
32-         | Check If Exists In Database | select  id from  person where  first_name = 'John' | 
31+         | Check If Exists In Database | SELECT  id FROM  person WHERE  first_name = 'Franz Allan' | 
32+         | Check If Exists In Database | SELECT  id FROM  person WHERE  first_name = 'John' | 
3333
3434        Then you will get the following: 
35-         | Check If Exists In Database | select  id from  person where  first_name = 'Franz Allan' | # PASS | 
36-         | Check If Exists In Database | select  id from  person where  first_name = 'John' | # FAIL | 
35+         | Check If Exists In Database | SELECT  id FROM  person WHERE  first_name = 'Franz Allan' | # PASS | 
36+         | Check If Exists In Database | SELECT  id FROM  person WHERE  first_name = 'John' | # FAIL | 
3737        """ 
3838        if  not  self .query (selectStatement ):
3939            raise  AssertionError ("Expected to have have at least one row from '%s' " 
@@ -52,12 +52,12 @@ def check_if_not_exists_in_database(self,selectStatement):
5252        |  1 | Franz Allan | See       | 
5353
5454        When you have the following assertions in your robot 
55-         | Check If Not Exists In Database | select  id from  person where  first_name = 'John' | 
56-         | Check If Not Exists In Database | select  id from  person where  first_name = 'Franz Allan' | 
55+         | Check If Not Exists In Database | SELECT  id FROM  person WHERE  first_name = 'John' | 
56+         | Check If Not Exists In Database | SELECT  id FROM  person WHERE  first_name = 'Franz Allan' | 
5757
5858        Then you will get the following: 
59-         | Check If Not Exists In Database | select  id from  person where  first_name = 'John' | # PASS | 
60-         | Check If Not Exists In Database | select  id from  person where  first_name = 'Franz Allan' | # FAIL | 
59+         | Check If Not Exists In Database | SELECT  id FROM  person WHERE  first_name = 'John' | # PASS | 
60+         | Check If Not Exists In Database | SELECT  id FROM  person WHERE  first_name = 'Franz Allan' | # FAIL | 
6161        """ 
6262        queryResults  =  self .query (selectStatement )
6363        if  queryResults :
@@ -74,12 +74,12 @@ def row_count_is_0(self,selectStatement):
7474        |  1 | Franz Allan | See       | 
7575
7676        When you have the following assertions in your robot 
77-         | Row Count is 0 | select  id from  person where  first_name = 'Franz Allan' | 
78-         | Row Count is 0 | select  id from  person where  first_name = 'John' | 
77+         | Row Count is 0 | SELECT  id FROM  person WHERE  first_name = 'Franz Allan' | 
78+         | Row Count is 0 | SELECT  id FROM  person WHERE  first_name = 'John' | 
7979
8080        Then you will get the following: 
81-         | Row Count is 0 | select  id from  person where  first_name = 'Franz Allan' | # FAIL | 
82-         | Row Count is 0 | select  id from  person where  first_name = 'John' | # PASS | 
81+         | Row Count is 0 | SELECT  id FROM  person WHERE  first_name = 'Franz Allan' | # FAIL | 
82+         | Row Count is 0 | SELECT  id FROM  person WHERE  first_name = 'John' | # PASS | 
8383        """ 
8484        num_rows  =  self .row_count (selectStatement )
8585        if  (num_rows  >  0 ):
@@ -97,12 +97,12 @@ def row_count_is_equal_to_x(self,selectStatement,numRows):
9797        |  2 | Jerry       | Schneider | 
9898
9999        When you have the following assertions in your robot 
100-         | Row Count Is Equal To X | select  id from  person | 1 | 
101-         | Row Count Is Equal To X | select  id from  person where  first_name = 'John' | 0 | 
100+         | Row Count Is Equal To X | SELECT  id FROM  person | 1 | 
101+         | Row Count Is Equal To X | SELECT  id FROM  person WHERE  first_name = 'John' | 0 | 
102102
103103        Then you will get the following: 
104-         | Row Count Is Equal To X | select  id from  person | 1 | # FAIL | 
105-         | Row Count Is Equal To X | select  id from  person where  first_name = 'John' | 0 | # PASS | 
104+         | Row Count Is Equal To X | SELECT  id FROM  person | 1 | # FAIL | 
105+         | Row Count Is Equal To X | SELECT  id FROM  person WHERE  first_name = 'John' | 0 | # PASS | 
106106        """ 
107107        num_rows  =  self .row_count (selectStatement )
108108        if  (num_rows  !=  int (numRows .encode ('ascii' ))):
@@ -120,12 +120,12 @@ def row_count_is_greater_than_x(self,selectStatement,numRows):
120120        |  2 | Jerry       | Schneider | 
121121
122122        When you have the following assertions in your robot 
123-         | Row Count Is Greater Than X | select  id from  person | 1 | 
124-         | Row Count Is Greater Than X | select  id from  person where  first_name = 'John' | 0 | 
123+         | Row Count Is Greater Than X | SELECT  id FROM  person | 1 | 
124+         | Row Count Is Greater Than X | SELECT  id FROM  person WHERE  first_name = 'John' | 0 | 
125125
126126        Then you will get the following: 
127-         | Row Count Is Greater Than X | select  id from  person | 1 | # PASS | 
128-         | Row Count Is Greater Than X | select  id from  person where  first_name = 'John' | 0 | # FAIL | 
127+         | Row Count Is Greater Than X | SELECT  id FROM  person | 1 | # PASS | 
128+         | Row Count Is Greater Than X | SELECT  id FROM  person WHERE  first_name = 'John' | 0 | # FAIL | 
129129        """ 
130130        num_rows  =  self .row_count (selectStatement )
131131        if  (num_rows  <=  int (numRows .encode ('ascii' ))):
@@ -143,12 +143,12 @@ def row_count_is_less_than_x(self,selectStatement,numRows):
143143        |  2 | Jerry       | Schneider | 
144144
145145        When you have the following assertions in your robot 
146-         | Row Count Is Less Than X | select  id from  person | 3 | 
147-         | Row Count Is Less Than X | select  id from  person where  first_name = 'John' | 1 | 
146+         | Row Count Is Less Than X | SELECT  id FROM  person | 3 | 
147+         | Row Count Is Less Than X | SELECT  id FROM  person WHERE  first_name = 'John' | 1 | 
148148
149149        Then you will get the following: 
150-         | Row Count Is Less Than X | select  id from  person | 3 | # PASS | 
151-         | Row Count Is Less Than X | select  id from  person where  first_name = 'John' | 1 | # FAIL | 
150+         | Row Count Is Less Than X | SELECT  id FROM  person | 3 | # PASS | 
151+         | Row Count Is Less Than X | SELECT  id FROM  person WHERE  first_name = 'John' | 1 | # FAIL | 
152152        """ 
153153        num_rows  =  self .row_count (selectStatement )
154154        if  (num_rows  >=  int (numRows .encode ('ascii' ))):
@@ -169,11 +169,11 @@ def table_must_exist(self,tableName):
169169        | Table Must Exist | first_name | # FAIL | 
170170        """ 
171171        if  self .db_api_module_name  in  ["cx_Oracle" ]:
172-             selectStatement  =  ("select  * from  all_objects where  object_type in  ('TABLE','VIEW') and  owner = SYS_CONTEXT('USERENV', 'SESSION_USER') and  object_name = upper ('%s')"  %  tableName )
172+             selectStatement  =  ("SELECT  * FROM  all_objects WHERE  object_type IN  ('TABLE','VIEW') AND  owner = SYS_CONTEXT('USERENV', 'SESSION_USER') AND  object_name = UPPER ('%s')"  %  tableName )
173173        elif  self .db_api_module_name  in  ["sqlite3" ]:
174174            selectStatement  =  ("SELECT name FROM sqlite_master WHERE type='table' AND name='%s' COLLATE NOCASE"  %  tableName )
175175        else :
176-             selectStatement  =  ("select  * from  information_schema.tables where  table_name='%s'"  %  tableName )
176+             selectStatement  =  ("SELECT  * FROM  information_schema.tables WHERE  table_name='%s'"  %  tableName )
177177        num_rows  =  self .row_count (selectStatement )
178178        if  (num_rows  ==  0 ):
179179            raise  AssertionError ("Table '%s' does not exist in the db"  %  tableName )
0 commit comments