This repository is front end code sepration for catalog.data.gov. This contains all the template files, Javascripts and stylesheets.
The ckanext-geodatagov and ckanext-spatial extensions must be installed and enabled as plugins before this extension can be installed and enabled.
This extension is compatible with versions of CKAN using Bootstrap 2 and Bootstrap 3. If CKAN is using version 2.8 or higher this extension will use Bootstrap 3.
This extension as well as the dependent extensions above must be installed properly with CKAN before running the tests for this extension.
The tests for this extension are located in the test directory.
They follow the guidelines for testing CKAN extensions.
To run the extension tests:
- Make sure your virtual environment is activated
. /usr/lib/ckan/default/bin/activate
- cd into the ckanext-datagovtheme directory
cd /usr/lib/ckan/default/src/ckanext-datagovtheme
- Use the nosetests command:
nosetests --ckan --with-pylons=test.ini ckanext/datagovtheme/tests
Note: the tests will only run if the environment is installed using the CKAN Install from Source installation
To start environment, run:
docker-compose build
docker-compose up
CKAN will start at localhost:5000
To shut down environment, run:
docker-compose down
To docker exec into the CKAN image, run:
docker-compose exec ckan /bin/bash
docker-compose exec ckan /bin/bash -c "nosetests --ckan --with-pylons=src_extensions/datagovtheme/docker_test.ini src_extensions/datagovtheme/"
Get inside the container
docker-compose exec app bash
Run the tests
source /usr/lib/ckan/bin/activate
cd /usr/lib/ckan/src/ckan
cp ckan/public/base/css/main.css ckan/public/base/css/main.debug.css
cd /usr/lib/ckan/src/ckanext-datagovtheme
pip install -r dev-requirements.txt
nosetests --ckan --with-pylons=test-catalog-2.3-local-catalog-app.ini ckanext.datagovtheme.tests.test_old_ckan