DEV Community

Discussion on: PyTest with Django REST Framework: From Zero to Hero

Collapse
marvinkweyu profile image
Marvin • Edited

I can see 'mocker' passed as a param, but no import nor config for pytest.

Thread Thread
sherlockcodes profile image
Lucas Miguel Author

Because it's passed as a fixture to the test function. You don't need no imports. It's PyTest's ABC. If you make a basic pytest tutorial or go through this article there's no way you don't encounter fixtures. I encourage you to do a basic pytest tutorial and then go through this article. You should not have any doubts like this left. Hope I was helpful

Thread Thread
marvinkweyu profile image
Marvin

100%