[Fixed]-Unit test an external facing function

1👍

There’s no params parameter for the get or any of the other functions on the client, you’re probably thinking of data.

response = self.client.get(
    '/fetch_dummy_content/',
    data=params
)

It’s the second argument anyway, so you can just do self.client.get('/fetch_dummy_content/', params) too.

Any unknown parameters get included in the environment which explains why you were not getting an error for using the wrong name.

Leave a comment