From c77393d639292dd7e5a61d467dc89b5bc2bc6bec Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Fri, 17 Nov 2023 12:12:34 -0500 Subject: [PATCH 1/2] add tests for --empty flag --- .changes/unreleased/Under the Hood-20231117-121214.yaml | 6 ++++++ dev-requirements.txt | 4 ++-- tests/functional/adapter/empty/test_empty.py | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Under the Hood-20231117-121214.yaml create mode 100644 tests/functional/adapter/empty/test_empty.py diff --git a/.changes/unreleased/Under the Hood-20231117-121214.yaml b/.changes/unreleased/Under the Hood-20231117-121214.yaml new file mode 100644 index 000000000..61b0617ad --- /dev/null +++ b/.changes/unreleased/Under the Hood-20231117-121214.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Add tests for --empty flag +time: 2023-11-17T12:12:14.643365-05:00 +custom: + Author: michelleark + Issue: "1029" diff --git a/dev-requirements.txt b/dev-requirements.txt index 48598298b..34b961421 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,7 +1,7 @@ # install latest changes in dbt-core # TODO: how to automate switching from develop to version branches? -git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core -git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-tests-adapter&subdirectory=tests/adapter +git+https://github.com/dbt-labs/dbt-core.git@dry-run-flag#egg=dbt-core&subdirectory=core +git+https://github.com/dbt-labs/dbt-core.git@dry-run-flag#egg=dbt-tests-adapter&subdirectory=tests/adapter # if version 1.x or greater -> pin to major version # if version 0.x -> pin to minor diff --git a/tests/functional/adapter/empty/test_empty.py b/tests/functional/adapter/empty/test_empty.py new file mode 100644 index 000000000..c224c51df --- /dev/null +++ b/tests/functional/adapter/empty/test_empty.py @@ -0,0 +1,5 @@ +from dbt.tests.adapter.empty.test_empty import BaseTestEmpty + + +class TestBigQueryEmpty(BaseTestEmpty): + pass From 37a2b5c22a8416923b39aa96f12ba7798ea904e1 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Fri, 1 Dec 2023 13:45:37 -0500 Subject: [PATCH 2/2] restore dev-requirements --- dev-requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 34b961421..48598298b 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,7 +1,7 @@ # install latest changes in dbt-core # TODO: how to automate switching from develop to version branches? -git+https://github.com/dbt-labs/dbt-core.git@dry-run-flag#egg=dbt-core&subdirectory=core -git+https://github.com/dbt-labs/dbt-core.git@dry-run-flag#egg=dbt-tests-adapter&subdirectory=tests/adapter +git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core +git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-tests-adapter&subdirectory=tests/adapter # if version 1.x or greater -> pin to major version # if version 0.x -> pin to minor