Skip to content

Conversation

@albertsola
Copy link
Contributor

No description provided.

Comment on lines 42 to 48
resource.id = 2
assert resource.id == 2

def test_malformed_meta_response(self):
with pytest.raises(TypeError, match=re.escape("Response $meta must be a dict.")):
_resource = GenericResource.from_response(Response(200, json={"data": {}, "$meta": 4}))
resource.name.given = "John"
assert resource.name.given == "John"
Copy link
Contributor

Choose a reason for hiding this comment

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

We are following AAA which means each section should be grouped together. Sorry, I can't suggest the change directly here.

resource.id = 2
resource.name.given = "John"

assert resource.id == 2
assert resource.name.given == "John"

@albertsola albertsola self-assigned this Aug 5, 2025
Copy link
Contributor Author

@albertsola albertsola left a comment

Choose a reason for hiding this comment

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

Remove extra spaces

@albertsola albertsola force-pushed the asola/MPT-12327/Collection-result branch from 0d63678 to 34659a9 Compare August 5, 2025 13:52
@albertsola albertsola force-pushed the asola/MPT-12327/Collection-result branch from 34659a9 to f53b291 Compare August 5, 2025 14:02
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 5, 2025

@albertsola albertsola merged commit 26f535f into main Aug 5, 2025
3 checks passed
@albertsola albertsola deleted the asola/MPT-12327/Collection-result branch August 5, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants