Django tests, transactions and angular protractor

I am using django-rest-framework for backend and angularjs for interface. I started writing e2e tests using a protractor and ran into the problem that after each test all changes to the database are saved. In django, each test is enclosed in a database transaction that rolls back at the end of the test. Is there a way to conclude every protractor test in a transaction? I know that I can use django live server, python-selenium and write tests in python, but then I lose the benefits of protractor.

+4
source share
1 answer

Unfortunately, there is no universal solution to this problem.

, Protractor/ Node.js , . ORM sequelize.js . , Node.js, , , .

, , : Django REST API "" "" Protractor, / , REST API HTTP-, . :

+1

Source: https://habr.com/ru/post/1612118/


All Articles