diff --git a/levergreen_dbt/tests/check_expected_careers_pages_scraped.sql b/levergreen_dbt/tests/check_expected_careers_pages_scraped.sql index 69c8887..31f9ee9 100644 --- a/levergreen_dbt/tests/check_expected_careers_pages_scraped.sql +++ b/levergreen_dbt/tests/check_expected_careers_pages_scraped.sql @@ -1,4 +1,10 @@ -{{ config(severity = 'warn') }} +{{ + config( + severity = 'error', + error_if = '>=10', + warn_if = '>0' + ) +}} --config must be of the bracket comment format or it doesn't comment it. -- here we are checking if the scraper did correctly scrape jobs for each careers_page diff --git a/levergreen_dbt/tests/check_expected_careers_pages_scraped_excl_no_jobs.sql b/levergreen_dbt/tests/check_expected_careers_pages_scraped_excl_no_jobs.sql index 1fcea82..3f93bbc 100644 --- a/levergreen_dbt/tests/check_expected_careers_pages_scraped_excl_no_jobs.sql +++ b/levergreen_dbt/tests/check_expected_careers_pages_scraped_excl_no_jobs.sql @@ -1,4 +1,4 @@ -{{ config(enabled=true, severity = 'error') }} +{{ config(enabled=false, severity = 'error') }} --disable when all companies have has jobs -- here we are checking if the scraper did correctly scrape jobs for each careers_page