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

Migrate to syrupy snapshot testing#1005

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
n2ygk merged 1 commit intodjango-json-api:masterfromsliverc:intro_syrupy
Nov 10, 2021

Conversation

sliverc
Copy link
Member

Description of the Change

snapshottest is not really maintained anymore and causes issue in showing the diff as recent versions changed ordering (see#1003). Therefore suggesting that we move tosyrupy which is well maintained, has better pytest integration, has a proper serialization format (instead of simply writing python code as snapshottest does) and is extensible.

For now this PR is a simple migration without any changes in testing. In the future also when working on#468 we might create our own syrupy extensions to simplify our testing (e.g. in test_openapi there a quite a few json.dumps).

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name inAUTHORS

@slivercsliverc requested a review fromn2ygkOctober 28, 2021 18:28
Copy link
Contributor

@n2ygkn2ygk left a comment

Choose a reason for hiding this comment

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

Looks good. Sorry for the long delay.

@n2ygkn2ygk merged commitf32e823 intodjango-json-api:masterNov 10, 2021
@slivercsliverc deleted the intro_syrupy branchNovember 10, 2021 16:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@n2ygkn2ygkn2ygk approved these changes

@auvipyauvipyauvipy approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@sliverc@n2ygk@auvipy

[8]ページ先頭

©2009-2025 Movatter.jp