-
Notifications
You must be signed in to change notification settings - Fork 309
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
feat: adds ForeignTypeInfo test #2076
feat: adds ForeignTypeInfo test #2076
Conversation
…thub.com/googleapis/python-bigquery into feat-b358215039-add-foreigntypeinfo-test
@@ -598,61 +598,6 @@ def to_api_repr(self) -> dict: | |||
return answer | |||
|
|||
|
|||
class TableSchema: |
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: with this much removed code that isnt relevant to the change, it would probably make sense to have that as a separate PR (for next time don't need to move it now)
klass = self._get_target_class() | ||
result = klass.from_api_repr(resource) | ||
|
||
assert result.to_api_repr() == expected.to_api_repr() |
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.
Similar feedback to the other CL, though maybe though now I'm thinking maybe we need to test that from_api_repr has the same response, though since to_api_repr is tested I think this is actually ok.
Your doc comment does describe that the results we are comparing are displayed as a dict, maybe its just the test naming that is throwing it off for me (maybe test_convert_api_repr or something?). Either way do think its fine to leave as is.
Adds a test to the test sets for ForeignTypeInfo.
Also removed
class TableSchema
as unneeded.