-
Notifications
You must be signed in to change notification settings - Fork 0
MPT-12326 Updated generic resource and tests #6
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
| 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" |
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.
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
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.
Remove extra spaces
0d63678 to
34659a9
Compare
34659a9 to
f53b291
Compare
|



No description provided.