Fix REST API tests (#4279)
* Conftest: check values instead of keys * Rename SQL script for db restoring * Use SQL dump file instead of custom format * Use SQL dump file instead of custom format * Update README * Conftest: fix scope for restore_dbmain
parent
61787ce749
commit
58a71a480d
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -0,0 +1,7 @@
|
||||
SELECT pg_terminate_backend(pg_stat_activity.pid)
|
||||
FROM pg_stat_activity
|
||||
WHERE pg_stat_activity.datname = 'cvat' AND pid <> pg_backend_pid();
|
||||
|
||||
DROP DATABASE cvat;
|
||||
|
||||
CREATE DATABASE cvat WITH TEMPLATE test_db;
|
||||
Loading…
Reference in New Issue