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

openapi3(tests): use testify's YAMLEq function #954

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

percivalalb
Copy link
Contributor

Use https://pkg.go.dev/github.com/stretchr/[email protected]/require#YAMLEq which is already in use by other test files.

[alb@192 kin-openapi]$ git grep -i "yamlEq"
openapi2conv/issue187_test.go:  require.YAMLEq(t, string(spec3), expected)
openapi3/issue883_test.go:              require.YAMLEq(t, `
openapi3/issue883_test.go:              require.YAMLEq(t, spec, string(marshalledYaml))
openapi3/issue883_test.go:              require.YAMLEq(t, `
openapi3/issue883_test.go:              require.YAMLEq(t, `
openapi3/issue883_test.go:              require.YAMLEq(t, spec, string(marshalledYaml))

@fenollp fenollp changed the title Use testify's YAMLEq function openapi3(tests): use testify's YAMLEq function Jun 2, 2024
@fenollp fenollp merged commit f170f8c into getkin:master Jun 2, 2024
7 checks passed
@fenollp
Copy link
Collaborator

fenollp commented Jun 2, 2024

Thanks!

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.

2 participants