Skip to content

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.

3 participants