DEV Community

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

Collapse
 
vasantsachdewa profile image
VasantSachdewa

Hello Lucas,
Not sure if I missed out, but is there a way to do an e2e(integration) test without a running database?

Regards,
Vasant Singh Sachdewa

Collapse
 
sherlockcodes profile image
Lucas Miguel

Hey Vasant. Of course you could, it would imply mocking a lot of tuff (every unit involved) but if you read my article again you'll see there's no point in it. You basically would be missing the point, that is, keeping the e2e tests for sanity checks and having a test that merges the whole code.

Collapse
 
vasantsachdewa profile image
VasantSachdewa

Thanks Lucas, I really appreciate it