Skip to content

Commit

Permalink
tests: Use Docker path for test-core.ini locally and on github
Browse files Browse the repository at this point in the history
  • Loading branch information
bellisk committed Nov 6, 2024
1 parent 543a85e commit 5065833
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions bin/install_test_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ pip install -e git+https://github.com/ckan/[email protected]#eg
pip install -e git+https://github.com/ckan/ckanext-fluent.git#egg=ckanext-fluent
pip install -r https://raw.githubusercontent.com/ckan/ckanext-fluent/master/requirements.txt

# Replace default path to CKAN core config file with the one on the container
sed -i -e 's/use = config:.*/use = config:\/srv\/app\/src\/ckan\/test-core.ini/' /__w/ckanext-switzerland/ckanext-switzerland/test.ini

# Init db and re-enable required plugins
ckan config-tool /__w/ckanext-switzerland/ckanext-switzerland/test.ini "ckan.plugins = "
ckan -c /__w/ckanext-switzerland/ckanext-switzerland/test.ini db init
Expand Down
3 changes: 1 addition & 2 deletions test.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ host = 0.0.0.0
port = 5000

[app:main]
use = config:../../src/ckan/test-core.ini

use = config:/srv/app/src/ckan/test-core.ini

# custom config settings to be used when running tests
# ----------------------------------------------------------------
Expand Down

0 comments on commit 5065833

Please sign in to comment.