Skip to content

Commit

Permalink
Revert CI comment, add test for standalone audit non-blocking validation
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesittas committed Jan 23, 2025
1 parent 2934f46 commit 0827b6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ workflows:
- bigquery
- clickhouse-cloud
- athena
# filters:
# branches:
# only:
# - main
filters:
branches:
only:
- main
- trigger_private_tests:
requires:
- style_and_slow_tests
Expand Down
5 changes: 5 additions & 0 deletions tests/core/test_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ def test_standalone_audit(model: Model, assert_exp_eq):
rendered_query, """SELECT * FROM "db"."test_model" AS "test_model" WHERE "col" IS NULL"""
)

with pytest.raises(AuditConfigError) as ex:
StandaloneAudit(name="test_audit", query=parse_one(f"SELECT 1"), blocking=True)

assert "Standalone audits cannot be blocking: 'test_audit'." in str(ex.value)


def test_render_definition():
expressions = parse(
Expand Down

0 comments on commit 0827b6c

Please sign in to comment.