-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add a few testing helper utilities to pueblo.testing
#12
Conversation
Codecov Report
@@ Coverage Diff @@
## main #12 +/- ##
==========================================
+ Coverage 71.98% 74.37% +2.39%
==========================================
Files 14 17 +3
Lines 514 562 +48
==========================================
+ Hits 370 418 +48
Misses 144 144
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
30d25fa
to
c4f1082
Compare
if item.name in ["conftest.py"] or item.name.startswith("test"): | ||
continue |
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.
Currently untested, so this is a candidate for improving the test cases.
if not tests: | ||
raise ValueError(f"No tests collected from notebook: {filepath}") |
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.
Currently untested, so this is a candidate for improving the test cases.
About
Classical yak shaving.
Details
A few generalized testing helpers to avoid code duplication within the educational repository cratedb-examples, originally conceived at 1. We need those utilities at many more spots, so we needed to find a good place to store them.
/cc @andnig
Footnotes
https://github.com/crate/cratedb-examples/blob/main/topic/machine-learning/llm-langchain/test.py ↩