Page MenuHomeSoftware Heritage

D1819.id6124.diff
No OneTemporary

D1819.id6124.diff

diff --git a/jobs/templates/swh-cypress.groovy b/jobs/templates/swh-cypress.groovy
--- a/jobs/templates/swh-cypress.groovy
+++ b/jobs/templates/swh-cypress.groovy
@@ -47,8 +47,9 @@
sh '''#!/bin/bash
source ~/swh-web-env/bin/activate
export PYTHONPATH=$PWD
- python3 swh/web/manage.py migrate
- python3 swh/web/manage.py createcachetable
+ python3 swh/web/manage.py migrate --settings=swh.web.settings.tests
+ python3 swh/web/manage.py createcachetable --settings=swh.web.settings.tests
+ cat swh/web/tests/create_test_admin.py | python3 swh/web/manage.py shell --settings=swh.web.settings.tests
python3 swh/web/manage.py runserver --nostatic --settings=swh.web.settings.tests &
wait-for-it localhost:5004
yarn run cypress run
diff --git a/jobs/templates/swh-cypress.yaml b/jobs/templates/swh-cypress.yaml
--- a/jobs/templates/swh-cypress.yaml
+++ b/jobs/templates/swh-cypress.yaml
@@ -64,8 +64,9 @@
pip3 install -e .[testing]
yarn install && yarn build-test && yarn run cypress install
export PYTHONPATH=$PWD
- python3 swh/web/manage.py migrate
- python3 swh/web/manage.py createcachetable
+ python3 swh/web/manage.py migrate --settings=swh.web.settings.tests
+ python3 swh/web/manage.py createcachetable --settings=swh.web.settings.tests
+ cat swh/web/tests/create_test_admin.py | python3 swh/web/manage.py shell --settings=swh.web.settings.tests
python3 swh/web/manage.py runserver --nostatic --settings=swh.web.settings.tests &
wait-for-it localhost:5004
yarn run cypress run

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 2:26 AM (19 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220286

Event Timeline