From 7b35a438e5cf30b939fc6d0490162c55613b0511 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Thu, 21 Sep 2023 18:11:03 -0400 Subject: [PATCH] implement tests for persist test results functionality --- .changes/unreleased/Features-20230921-180958.yaml | 6 ++++++ Makefile | 1 + dev-requirements.txt | 4 ++-- tests/functional/adapter/test_persist_test_results.py | 5 +++++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Features-20230921-180958.yaml create mode 100644 tests/functional/adapter/test_persist_test_results.py diff --git a/.changes/unreleased/Features-20230921-180958.yaml b/.changes/unreleased/Features-20230921-180958.yaml new file mode 100644 index 000000000..fefb3da53 --- /dev/null +++ b/.changes/unreleased/Features-20230921-180958.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Support test results as views +time: 2023-09-21T18:09:58.174136-04:00 +custom: + Author: mikealfare + Issue: "6914" diff --git a/Makefile b/Makefile index 876440a01..cc1d9f75d 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ dev: ## Installs adapter in develop mode along with development dependencies dev-uninstall: ## Uninstalls all packages while maintaining the virtual environment ## Useful when updating versions, or if you accidentally installed into the system interpreter pip freeze | grep -v "^-e" | cut -d "@" -f1 | xargs pip uninstall -y + pip uninstall -y dbt-spark .PHONY: mypy mypy: ## Runs mypy against staged changes for static type checking. diff --git a/dev-requirements.txt b/dev-requirements.txt index 6ea7b16aa..d17d99637 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@feature/materialized-tests/adap-850#egg=dbt-core&subdirectory=core +git+https://github.com/dbt-labs/dbt-core.git@feature/materialized-tests/adap-850#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/test_persist_test_results.py b/tests/functional/adapter/test_persist_test_results.py new file mode 100644 index 000000000..75bfb5acc --- /dev/null +++ b/tests/functional/adapter/test_persist_test_results.py @@ -0,0 +1,5 @@ +from dbt.tests.adapter.persist_test_results.basic import PersistTestResults + + +class TestPersistTestResults(PersistTestResults): + pass