From 30dc9779b902bce93ea5d8b14c99b260a79170da Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Thu, 22 Feb 2024 10:48:41 -0500 Subject: [PATCH] move files that use a `data` directory into their own directory to avoid collisions --- .../shared_tests/{ => test_hooks}/data/seed_model.sql | 0 .../shared_tests/{ => test_hooks}/data/seed_run.sql | 0 tests/functional/shared_tests/{ => test_hooks}/test_hooks.py | 4 ++++ .../shared_tests/{ => test_simple_seed}/test_simple_seed.py | 4 ++++ 4 files changed, 8 insertions(+) rename tests/functional/shared_tests/{ => test_hooks}/data/seed_model.sql (100%) rename tests/functional/shared_tests/{ => test_hooks}/data/seed_run.sql (100%) rename tests/functional/shared_tests/{ => test_hooks}/test_hooks.py (92%) rename tests/functional/shared_tests/{ => test_simple_seed}/test_simple_seed.py (89%) diff --git a/tests/functional/shared_tests/data/seed_model.sql b/tests/functional/shared_tests/test_hooks/data/seed_model.sql similarity index 100% rename from tests/functional/shared_tests/data/seed_model.sql rename to tests/functional/shared_tests/test_hooks/data/seed_model.sql diff --git a/tests/functional/shared_tests/data/seed_run.sql b/tests/functional/shared_tests/test_hooks/data/seed_run.sql similarity index 100% rename from tests/functional/shared_tests/data/seed_run.sql rename to tests/functional/shared_tests/test_hooks/data/seed_run.sql diff --git a/tests/functional/shared_tests/test_hooks.py b/tests/functional/shared_tests/test_hooks/test_hooks.py similarity index 92% rename from tests/functional/shared_tests/test_hooks.py rename to tests/functional/shared_tests/test_hooks/test_hooks.py index 3db138eb..84381130 100644 --- a/tests/functional/shared_tests/test_hooks.py +++ b/tests/functional/shared_tests/test_hooks/test_hooks.py @@ -1,3 +1,7 @@ +""" +This file needs to be in its own directory because it uses a `data` directory. +Placing this file in its own directory avoids collisions. +""" from dbt.tests.adapter.hooks.test_model_hooks import ( BasePrePostModelHooks, BaseHookRefs, diff --git a/tests/functional/shared_tests/test_simple_seed.py b/tests/functional/shared_tests/test_simple_seed/test_simple_seed.py similarity index 89% rename from tests/functional/shared_tests/test_simple_seed.py rename to tests/functional/shared_tests/test_simple_seed/test_simple_seed.py index 97b8870a..cd849788 100644 --- a/tests/functional/shared_tests/test_simple_seed.py +++ b/tests/functional/shared_tests/test_simple_seed/test_simple_seed.py @@ -1,3 +1,7 @@ +""" +This file needs to be in its own directory because it creates a `data` directory at run time. +Placing this file in its own directory avoids collisions. +""" from dbt.tests.adapter.simple_seed.test_seed import ( BaseBasicSeedTests, BaseSeedConfigFullRefreshOn,