From 99b6da30b350e4423e7ea7d9370fb6da8a4e6c4f Mon Sep 17 00:00:00 2001 From: George Sittas Date: Thu, 23 Jan 2025 19:19:50 +0200 Subject: [PATCH] Revert CI comment, add test for standalone audit non-blocking validation --- .circleci/continue_config.yml | 8 ++++---- tests/core/test_audit.py | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.circleci/continue_config.yml b/.circleci/continue_config.yml index ebacc9500..201a7c3a6 100644 --- a/.circleci/continue_config.yml +++ b/.circleci/continue_config.yml @@ -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 diff --git a/tests/core/test_audit.py b/tests/core/test_audit.py index 90ee1603d..7afcc43d4 100644 --- a/tests/core/test_audit.py +++ b/tests/core/test_audit.py @@ -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(