-
Notifications
You must be signed in to change notification settings - Fork 3
Add example revolving around Twitch data to documentation #48
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #48 +/- ##
=======================================
Coverage 93.90% 93.90%
=======================================
Files 15 15
Lines 1607 1607
=======================================
Hits 1509 1509
Misses 98 98 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Excellent job!
Now let's write an actual specification, expressing our expectations against the data. | ||
First, we need to make sure a connection to database can be established at test execution | ||
time. How this is done exactly depends on how you set up your database. When using our | ||
default setup with running `$ ./start_postgres.sh <https://github.com/Quantco/datajudge/blob/main/start_postgres.sh>`_, |
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.
Probably here would be good to mention it's a container-based setup.
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.
Good point! I restructured this a bit to talk about the dockerized setup at the very beginning.
FAILED twitch_specification.py::test_func[NumericMean::public.twitch_v2 | public.twitch_v2] - Ass... | ||
=================================== 4 failed, 4 passed in 1.80s ==================================== | ||
|
||
So we see that we might not want to trust version 2 of the data as is. What exactly do we |
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.
So we see that we might not want to trust version 2 of the data as is. What exactly do we | |
So we see that we might not want to blindly trust version 2 of the data as is, and that a new exploration might be in order. What exactly do we |
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.
I was unfamiliar with this usage of the expression 'in order' and took the liberty to rephrase slightly.
Co-authored-by: Ignacio Vergara Kausel <ivergarakausel@gmail.com>
Co-authored-by: Ignacio Vergara Kausel <ivergarakausel@gmail.com>
Thanks a lot for the blazingly fast review @ivergara :) |
You can find a rendered version of the new example in the docs here:
https://datajudge--48.org.readthedocs.build/en/48/examples/example_twitch.html