Skip to content
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

[wdspec] verify internal ids for deeply nested objects #49821

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OrKoN
Copy link
Contributor

@OrKoN OrKoN commented Dec 22, 2024

Currently tests never verify that serialization of deeply (more than 1 level) objects actually works.

@OrKoN OrKoN force-pushed the orkon/nested-objects branch from 0bbe051 to dd96b01 Compare December 22, 2024 20:14
Comment on lines +76 to +83
# key1
internalIdKey1 = result["value"][0][1]["internalId"]
# key2
internalIdKey2 = result["value"][1][1]["internalId"]
# nested.key3
internalIdKey3 = result["value"][2][1]["value"][0][1]["internalId"]
# nested.key4
internalIdKey4 = result["value"][2][1]["value"][1][1]["internalId"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we can remove the 4 comments here given that it is clear by the name of the variables what these are used for.

Suggested change
# key1
internalIdKey1 = result["value"][0][1]["internalId"]
# key2
internalIdKey2 = result["value"][1][1]["internalId"]
# nested.key3
internalIdKey3 = result["value"][2][1]["value"][0][1]["internalId"]
# nested.key4
internalIdKey4 = result["value"][2][1]["value"][1][1]["internalId"]
internalIdKey1 = result["value"][0][1]["internalId"]
internalIdKey2 = result["value"][1][1]["internalId"]
internalIdKey3 = result["value"][2][1]["value"][0][1]["internalId"]
internalIdKey4 = result["value"][2][1]["value"][1][1]["internalId"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants