-
Notifications
You must be signed in to change notification settings - Fork 809
More consistent assertion methods #641
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
codeboten
left a comment
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.
Nice, thanks for breaking this up! Looks like lint needs fixing, otherwise it looks good
eb87e75 to
74605ff
Compare
| assert spans | ||
| span = spans[2] | ||
| self.assertEqual( | ||
| span.attributes, |
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 failing now as the underlying library is generating a unique ID per request which is recorded as an attribute so we can no longer use assertEqual.
74605ff to
637ef45
Compare
codeboten
left a comment
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 comment on the name of the method, which I should mentioned in the PR to rename the method
|
|
||
| # Check version and name in span's instrumentation info | ||
| self.check_span_instrumentation_info( | ||
| self.assertSpanInstrumentationInfo( |
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.
Nit: I would rename this asserSpanHasInstrumentationInfo to make it more consistent
637ef45 to
1a665d6
Compare
ocelotl
left a comment
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.
Requesting changes because of this.
1a665d6 to
2a92e25
Compare
Description
Update base test class to have more consistent assertion methods with rest of Python ecosystem.
Fix breaking botocore instrumentation tests
Dev/Tooling enchancement
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update
How Has This Been Tested?
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.