Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Minor cleanup for ModelSerializer tests#5598

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@rpkilby
Copy link
Contributor

Just some minor changes.

  • ReplacedassertRaises w/assertRaisesMessage, reducing some test verbosity.
  • test_fields_and_exclude_behavior is no longer relevant, as it tested the old behavior ofMeta.fields = '__all__' being implicitly set whenMeta.fields andMeta.exclude weren't present.
  • Simplified parent class in inheritance test for declared fields.

@carltongibsoncarltongibson added this to thev3.7.4 milestoneNov 22, 2017
Copy link
Collaborator

@carltongibsoncarltongibson left a comment

Choose a reason for hiding this comment

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

Yep. Great.

@carltongibsoncarltongibson merged commitae88f5c intoencode:masterNov 22, 2017
@rpkilbyrpkilby deleted the fixup-modelserializer-tests branchNovember 22, 2017 09:37
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull requestNov 17, 2020
* Replace assertRaises with assertRaisesMessage* Remove outdated implicit Meta.fields test* Simplify parent declared field test
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@carltongibsoncarltongibsoncarltongibson approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

3.7.4 Release

Development

Successfully merging this pull request may close these issues.

2 participants

@rpkilby@carltongibson

[8]ページ先頭

©2009-2025 Movatter.jp