Skip to content

Commit

Permalink
Add no privileges flags to test db restore
Browse files Browse the repository at this point in the history
  • Loading branch information
dorthrithil committed Mar 13, 2024
1 parent 167d1c3 commit 11e6c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def client():
# Load dump
with app.app_context():
subprocess.check_output(
"export PGPASSWORD={}; pg_restore -h {} -p {} -U {} -d {} --format=c --clean -j 4 ../tests/dumps/localcrag_test_dump.sql".format(
"export PGPASSWORD={}; pg_restore --no-privileges --no-owner -h {} -p {} -U {} -d {} --format=c --clean -j 4 ../tests/dumps/localcrag_test_dump.sql".format(
current_app.config['TEST_POSTGRES_PASSWORD'],
current_app.config['TEST_POSTGRES_HOST'],
current_app.config['TEST_POSTGRES_PORT'],
Expand Down

0 comments on commit 11e6c5c

Please sign in to comment.