Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add dbt unit tests #349

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
9d8f0c8
Replaced python unit test with dbt 1.8 unit test
adamribaudo-velir Jun 7, 2024
298f373
refactored unit tests for stg_ga4__session_conversions_daily
adamribaudo-velir Jun 7, 2024
906bec2
update test name
adamribaudo-velir Jun 7, 2024
e994408
Replaced Python unit test with dbt unit test
adamribaudo-velir Jun 22, 2024
34bbab9
variable override working properly
adamribaudo-velir Jun 22, 2024
4b66d1f
using overrides properly
adamribaudo-velir Jun 22, 2024
79f7e27
replaced another unit test
adamribaudo-velir Jun 22, 2024
cecf337
replaced python unit test
adamribaudo-velir Jun 22, 2024
63a7d86
add unit test for stg_ga4__client_key_first_last_pageviews
adamribaudo-velir Jun 22, 2024
6e709db
replace unit test
adamribaudo-velir Jun 22, 2024
9d53c9a
unit test for stg_ga4__sessions_traffic_sources_last_non_direct_daily…
adamribaudo-velir Jun 22, 2024
3425fdf
Add package-lock.yml to .gitignore
davidbooke4 Oct 22, 2024
c3ba7f7
Add vars to dbt_project.yml for testing
davidbooke4 Oct 23, 2024
10456ef
Merge branch 'main' into feature/dbt-unit-tests
davidbooke4 Oct 23, 2024
a1f10df
Add unit tests to stg_ga4__events.yml for the url_parsing macros
davidbooke4 Oct 23, 2024
5972788
Add conditions for cases when event_source is null for session parame…
davidbooke4 Oct 23, 2024
20598fb
Add unit test to stg_ga4__sessions_traffic_sources_daily for testing …
davidbooke4 Oct 23, 2024
282eeee
Add unit test to stg_ga4__user_id_mapping to test the latest mapping …
davidbooke4 Oct 23, 2024
c321197
Add descriptions for unit tests that were missing them
davidbooke4 Oct 23, 2024
8a1796e
Remove python unit tests that have been migrated to dbt unit tests
davidbooke4 Oct 23, 2024
c0aba5f
Add unit test to stg_ga4__events for testing transformations in stg_g…
davidbooke4 Oct 24, 2024
922ba07
Remove todo and example stg_ga4__events unit test files
davidbooke4 Oct 24, 2024
3a4f677
Add sessions_traffic_sources_last_non_direct_daily python unit test back
davidbooke4 Oct 24, 2024
c870130
Comment out unit tests for disabled models
davidbooke4 Oct 24, 2024
7386371
Remove edits from dbt_project.yml
davidbooke4 Oct 24, 2024
76f2c7f
Comment out unit test for sessions_traffic_sources_last_non_direct_da…
davidbooke4 Oct 24, 2024
697bafd
Update unit test section in README
davidbooke4 Oct 24, 2024
616da99
Simplify event_params construction in test_base_to_stg_ga4__events in…
davidbooke4 Oct 24, 2024
653e1ae
Update yml files to use consistent new line convention
davidbooke4 Oct 24, 2024
50ff2e8
update PR template
adamribaudo-velir Oct 24, 2024
68f9f87
Update default channel grouping test to use seed instead of fixture a…
davidbooke4 Oct 25, 2024
a3d9c1e
Comment out unit tests for disabled models
davidbooke4 Oct 28, 2024
1dd415e
Un-comment unit tests
davidbooke4 Oct 29, 2024
4ef2503
Add profiles.yml for Github Actions to execute dbt commands and add .…
davidbooke4 Oct 29, 2024
83bd23b
Add profile and variables to dbt_project.yml so Github Action can run…
davidbooke4 Oct 29, 2024
6f4335e
Add dbt unit tests job to github CI workflow
davidbooke4 Oct 29, 2024
947868d
Remove empty step
davidbooke4 Oct 29, 2024
8c879f7
Add repo to checkout step so PR code is checked out to test adding ne…
davidbooke4 Oct 29, 2024
ca215a1
Change workflow on behavior for testing changes
davidbooke4 Oct 29, 2024
984c311
Remove source project and property ID variables from dbt_project.yml
davidbooke4 Oct 30, 2024
6493051
Use environment variables for project, dataset, property ID when not …
davidbooke4 Oct 30, 2024
637e166
Add conditional logic to allow for use of --empty flag
davidbooke4 Oct 30, 2024
845e1df
Add step to materialize tables/views needed to run dbt unit tests
davidbooke4 Oct 30, 2024
48f2a14
Add environment variables related to project variables so models are …
davidbooke4 Nov 4, 2024
561c3e0
Update models to look for environment variables before project variables
davidbooke4 Nov 5, 2024
c32d699
Add environment variables to CI workflow
davidbooke4 Nov 5, 2024
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
Prev Previous commit
Next Next commit
Update default channel grouping test to use seed instead of fixture a…
…nd delete fixture csv
davidbooke4 committed Oct 25, 2024
commit 68f9f871e9593241305fae429e398e087e190557
2 changes: 0 additions & 2 deletions models/staging/stg_ga4__sessions_traffic_sources.yml
Original file line number Diff line number Diff line change
@@ -55,8 +55,6 @@ unit_tests:
AC,172000000000000,event,firebase,,
AD,172000000000000,event,some-source,some-medium,some-campaign
- input: ref('ga4_source_categories')
format: csv
fixture: ga4_source_categories
expect:
format: csv
rows: |
820 changes: 0 additions & 820 deletions tests/fixtures/ga4_source_categories.csv

This file was deleted.