-
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
Added chain to and direction argument to expression result sets #1528
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1528 +/- ##
==========================================
- Coverage 91.83% 91.73% -0.10%
==========================================
Files 120 120
Lines 15584 15591 +7
==========================================
- Hits 14311 14302 -9
- Misses 1273 1289 +16
|
adc297d
to
26a8415
Compare
tests/utils.py
Outdated
@@ -308,8 +308,12 @@ def create_instance(self, resource_cls: type[T_Object]) -> T_Object: | |||
# DataPointSubscriptionCreate requires either timeseries_ids or filter | |||
keyword_arguments.pop("filter", None) | |||
if resource_cls is Query: | |||
key_count = min(len(keyword_arguments["select"]), len(keyword_arguments["with_"])) |
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.
There should never be fewer result expressions than selects.
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 is from the FakeCogniteResourceGenerator
this is just to ensure that the with_
and select
arguments ends up with the same number of entries (they are both randomly generated based on the init signature, and since they are dict they are of random lengths). I have simplified the code to attempt to make it clearer.
43a6909
to
d4c09f2
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!
Description
New parameter:
Checklist:
If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.