-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: Unit tests for dbt models #112
Conversation
3bcccf9
to
fcc4d60
Compare
7a1718c
to
ab617c5
Compare
@@ -3,6 +3,6 @@ | |||
-- or is followed by '/answer' or '/hint' | |||
{% macro get_problem_id(object_id) %} | |||
regexpExtract( | |||
object_id, 'xblock/([\w\d-\+:@]*@problem\+block@[\w\d][^_]*)(_\d_\d)?', 1 | |||
object_id, 'xblock/([\w\d-\+:@]*@problem\+block@[\w\d][^_\/]*)(_\d_\d)?', 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This regexp was not removing '/answer' from the end of the string which caused data to be excluded in subsequent queries
5fcb938
to
decb470
Compare
rows: | | ||
select * from section_video_engagement_expected | ||
|
||
# - name: test_subsection_video_engagement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are having an issue I can't figure out right now but I wanted to get the rest of this code up for review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of comments with the new sources and macros
244d249
to
f063d40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for all of the work on this!
Add unit tests for all models using a known good data set
Closes #102
notes: