S
S
Sergey Alekseev2018-09-30 18:06:16
Python
Sergey Alekseev, 2018-09-30 18:06:16

Pytest, is it possible to create a test database for a single test?

Good evening, you need to write the following test: Before starting the test, the database must be empty, after calling the method in the test, the database is updated and we check the data that was added to it in the context of calling the test method. Are there such possibilities?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-09-30
@dimonchik2013

testing a database in a test application plan is a bad idea, but if there is nowhere to go, what is the question? rights to the user of the database, set the crite divides the database and do as much as you want

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question