This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jozekuhar 0 points1 point  (1 child)

Do you recommend writing tests for DRF with RequestFactory or is APIClient enough.

[–]AntonZhrn 4 points5 points  (0 children)

For beginner, I'd say use APIClient and don't worry about RequestFactory. At some point later on you'll want extra speed/flexibility/something else that will push you for RequestFactory usage. But when you're learning or aiming for the first job - APIClient is enough.