Skip to content

thejuliekramer/ckanext-datagovtheme

 
 

Repository files navigation

ckanext-datagovtheme

CircleCI

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:

  1. Make sure your virtual environment is activated

. /usr/lib/ckan/default/bin/activate

  1. cd into the ckanext-datagovtheme directory

cd /usr/lib/ckan/default/src/ckanext-datagovtheme

  1. 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

Using the Docker Dev Environment

Build Environment

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

Run Tests with Docker

docker-compose exec ckan /bin/bash -c "nosetests --ckan --with-pylons=src_extensions/datagovtheme/docker_test.ini src_extensions/datagovtheme/"

Test for CKAN 2.3 with catalog-app

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

About

Theme for Data Catalog

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • XSLT 46.6%
  • HTML 20.8%
  • CSS 16.6%
  • JavaScript 6.3%
  • Python 5.2%
  • Less 2.9%
  • Other 1.6%