Closed shortcuts closed 2 years ago
do you think it would it be possible to test the actual request being created?
@DevinCodes I don't know Python enough to affirm it is. After the step I've tested, the hosts gets randomly assigned and the payload translated to a Request
object before being sent. I feel like the assertion is close enough to the CTS but let me know if I should dig your suggestion.
@shortcuts I think you should be able to mock the requester (as you do the transporter rn), and then assert that the request object it gets passed contains the right values (method, path, body,...). I'm not entirely sure though, since I don't know enough Python as well 😅 Perhaps @tkrugg could point in the right direction here?
last check before mergning? @tkrugg @DevinCodes :D
Describe your change
This PR introduces the
Recommend
client with the following methods:get_recommendations
get_related_products
get_frequently_bought_together