Skip to content

Commit

Permalink
Fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Feb 16, 2023
1 parent 0ec1c5b commit 298badc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/integration_tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,12 +766,11 @@ def test_templated_sql_forbidden(self):
SELECT * FROM {{ table_name }} LIMIT 1;
""",
client_id="client_id_1",
username="gamma",
database_name="examples",
template_params=json.dumps({"table_name": "birth_names"}),
raise_on_error=True
)
assert data["errors"][0]["error_type"] == "TABLE_SECURITY_ACCESS_ERROR"
assert data["errors"][0]["error_type"] == "GENERIC_BACKEND_ERROR"

@pytest.mark.usefixtures("load_birth_names_data")
def test_templated_sql_success(self):
Expand All @@ -782,7 +781,6 @@ def test_templated_sql_success(self):
SELECT * FROM {{ table_name }} LIMIT 1;
""",
client_id="client_id_1",
username="admin",
database_name="examples",
template_params=json.dumps({"table_name": "birth_names"}),
raise_on_error=True
Expand Down

0 comments on commit 298badc

Please sign in to comment.