Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2022
Merged

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.py

This leaves only one file left to convert
@JohnVillalovos JohnVillalovos requested a review from nejch January 15, 2022 06:40
assert isinstance(obj, FakeObject)
assert obj.foo == "bar"
assert obj.id == 42
assert responses.assert_call_count(url, 1) is True
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 split test_list_mixin into test_list_mixin and test_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.

@nejch nejch merged commit fe14dd5 into main Jan 15, 2022
@nejch nejch deleted the jlvillal/rm_httmock branch January 15, 2022 11:36
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