Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Updating to match current file path naming schemes. #29

Merged
merged 3 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pytest_dbt_adapter/projects/data_test_ephemerals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ paths:
models/passing_model.sql: files.tests.ephemeral.passing
models/failing_model.sql: files.tests.ephemeral.failing
models/schema.yml: files.schemas.base
test/passing.sql: files.tests.ephemeral.passing
test/failing.sql: files.tests.ephemeral.failing
tests/passing.sql: files.tests.ephemeral.passing
tests/failing.sql: files.tests.ephemeral.failing
dbt_project_yml:
test-paths:
- tests

facts:
seed:
length: 1
Expand Down
8 changes: 6 additions & 2 deletions pytest_dbt_adapter/projects/data_tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: data_tests
paths:
test/passing.sql: files.tests.passing
test/failing.sql: files.tests.failing
tests/passing.sql: files.tests.passing
tests/failing.sql: files.tests.failing
dbt_project_yml:
test-paths:
- tests

facts:
test:
length: 2
Expand Down
1 change: 1 addition & 0 deletions pytest_dbt_adapter/projects/ephemeral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ paths:
models/view_model.sql: files.models.ephemeral_view
models/table_model.sql: files.models.ephemeral_table
models/schema.yml: files.schemas.base

facts:
seed:
length: 1
Expand Down
53 changes: 27 additions & 26 deletions pytest_dbt_adapter/projects/incremental.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
name: incremental
paths:
seeds/base.csv: files.seeds.base
seeds/added.csv: files.seeds.added
models/incremental.sql: files.models.incremental
models/schema.yml: files.schemas.base
seeds/base.csv: files.seeds.base
seeds/added.csv: files.seeds.added
models/incremental.sql: files.models.incremental
models/schema.yml: files.schemas.base

facts:
seed:
length: 2
names:
- base
- added
run:
length: 1
names:
- incremental
catalog:
nodes:
length: 3
sources:
length: 1
persisted_relations:
- base
- added
- incremental
base:
rowcount: 10
added:
rowcount: 20
seed:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you have a spacing issue (tabs/spaces maybe) where it it shows up as something is difference. Let's look at cleaning that up before merging. I can help tomorrow

Copy link
Contributor

@kwigley kwigley Oct 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leahwicz I think these spacing changes are fine for now. It makes this file consistent with other yaml files 👍 in this directory (other files use 4 space indent). We should probably stick to the default 2 spaces for all yaml files, but prefer consistency for now.

length: 2
names:
- base
- added
run:
length: 1
names:
- incremental
catalog:
nodes:
length: 3
sources:
length: 1
persisted_relations:
- base
- added
- incremental
base:
rowcount: 10
added:
rowcount: 20
1 change: 1 addition & 0 deletions pytest_dbt_adapter/projects/schema_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ paths:
models/schema.yml: files.schemas.base
models/schema_view.yml: files.schemas.test_view
models/schema_table.yml: files.schemas.test_table

facts:
seed:
length: 1
Expand Down
1 change: 1 addition & 0 deletions pytest_dbt_adapter/projects/snapshot_cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ paths:
snapshots/cc_all_snapshot.sql: files.snapshots.check_cols_all
snapshots/cc_date_snapshot.sql: files.snapshots.check_cols_date
snapshots/cc_name_snapshot.sql: files.snapshots.check_cols_name

facts:
seed:
length: 3
Expand Down
1 change: 1 addition & 0 deletions pytest_dbt_adapter/projects/snapshot_ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ paths:
seeds/newcolumns.csv: files.seeds.newcolumns
seeds/added.csv: files.seeds.added
snapshots/ts_snapshot.sql: files.snapshots.timestamp

facts:
seed:
length: 3
Expand Down