Skip to content

Commit 83a4166

Browse files
modified test cases
1 parent 88fc392 commit 83a4166

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_sql_guard_curr_unit.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,15 +714,14 @@ def test_id_greater_than_122_should_return_error(self, config):
714714
assert res["allowed"] is False, res
715715

716716
def test_id_greater_return_error(self, config, cnn):
717-
sql_query = "SELECT id, product_name FROM orders WHERE id >= 123"
718717

719718
verify_sql_test(
720-
sql_query,
719+
"SELECT id, product_name FROM orders WHERE id >= 123",
721720
config,
722721
cnn=cnn,
723722
errors={
724723
"Missing restriction for table: orders column: account_id value: [124]"
725724
},
726-
fix='SELECT id, product_name FROM orders WHERE (id >= 123) AND account_id = "124"',
725+
fix="SELECT id, product_name FROM orders WHERE (id >= 123) AND account_id = 124",
727726
data=[],
728727
)

0 commit comments

Comments
 (0)