-
Notifications
You must be signed in to change notification settings - Fork 27
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
Quality of Life on client.extraction_pipelines.runs.list #1322
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1322 +/- ##
==========================================
+ Coverage 91.78% 91.83% +0.04%
==========================================
Files 120 120
Lines 15579 15584 +5
==========================================
+ Hits 14299 14311 +12
+ Misses 1280 1273 -7
|
I see |
@@ -33,6 +36,28 @@ def new_extpipe(cognite_client): | |||
assert cognite_client.extraction_pipelines.retrieve(extpipe.id) is None | |||
|
|||
|
|||
@pytest.fixture |
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.
Let's add some broader scoping here to avoid re-running for each test using it
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.
It is only used once, and due to the scope of new_extpipe
, this cannot be made broader without rewriting all the tests below.
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, 2 comment-related comments
created = [] | ||
for run in runs: | ||
new_run = cognite_client.extraction_pipelines.runs.create(run) | ||
created.append(new_run) |
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.
🏌️-opportunity
…ta/cognite-sdk-python into add-extraction-pipeline-search
Description
A small QoL improvement to the
client.extraction_pipelines.runs.list
method.Checklist:
If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.