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

test: use 'responses' in test_mixins_methods.py#1843

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
nejch merged 1 commit intomainfromjlvillal/rm_httmock
Jan 15, 2022

Conversation

@JohnVillalovos
Copy link
Member

Convert from httmock to responses in test_mixins_methods.py

This leaves only one file left to convert

Convert from httmock to responses in test_mixins_methods.pyThis leaves only one file left to convert
assertisinstance(obj,FakeObject)
assertobj.foo=="bar"
assertobj.id==42
assertresponses.assert_call_count(url,1)isTrue
Copy link
Member

Choose a reason for hiding this comment

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

As we aren't sharing any fixtures here, was the assert for 1 call intended for all methods or mostly for the one with 2 calls?

Maybe we could splittest_list_mixin intotest_list_mixin andtest_list_mixin_as_generator then to really only test a single scenario per case, and use responses' own assert.

Copy link
Member

Choose a reason for hiding this comment

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

we can do that in a follow-up, we still have some httmock anyway.

@nejchnejch merged commitfe14dd5 intomainJan 15, 2022
@nejchnejch deleted the jlvillal/rm_httmock branchJanuary 15, 2022 11:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nejchnejchnejch left review comments

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

@JohnVillalovos@nejch

[8]ページ先頭

©2009-2025 Movatter.jp