Skip to content

Commit

Permalink
pytest conversion test_selection, schema_tests, fail_fast, permission (
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx authored Mar 15, 2022
1 parent 0fce636 commit d1bcff8
Show file tree
Hide file tree
Showing 102 changed files with 2,895 additions and 2,236 deletions.
11 changes: 10 additions & 1 deletion core/dbt/tests/fixtures/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,15 @@ def test_data_dir(request):
return os.path.join(request.fspath.dirname, "data")


# This fixture can be overridden in a project
@pytest.fixture(scope="class")
def profiles_config_update():
return {}


# The profile dictionary, used to write out profiles.yml
@pytest.fixture(scope="class")
def dbt_profile_data(unique_schema):
def dbt_profile_data(unique_schema, profiles_config_update):
profile = {
"config": {"send_anonymous_usage_stats": False},
"test": {
Expand Down Expand Up @@ -93,6 +99,9 @@ def dbt_profile_data(unique_schema):
"target": "default",
},
}

if profiles_config_update:
profile.update(profiles_config_update)
return profile


Expand Down

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions test/integration/008_schema_tests_tests/ephemeral/schema.yml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions test/integration/008_schema_tests_tests/macros-v2/macros/tests.sql

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit d1bcff8

Please sign in to comment.