diff --git a/ckanext/transmute/cli.py b/ckanext/transmute/cli.py deleted file mode 100644 index 717bba5..0000000 --- a/ckanext/transmute/cli.py +++ /dev/null @@ -1,11 +0,0 @@ -import click - - -def get_commands(): - return [transmute] - - -@click.group() -def transmute(): - """Basic CLI commands group for ckanext-transmute""" - pass diff --git a/ckanext/transmute/plugin.py b/ckanext/transmute/plugin.py index 8f834f3..d083fec 100644 --- a/ckanext/transmute/plugin.py +++ b/ckanext/transmute/plugin.py @@ -3,7 +3,6 @@ from ckanext.transmute.logic.action import get_actions from ckanext.transmute.logic.auth import get_auth_functions -from ckanext.transmute.cli import get_commands from ckanext.transmute.transmutators import get_transmutators from ckanext.transmute.interfaces import ITransmute @@ -11,7 +10,6 @@ class TransmutePlugin(p.SingletonPlugin): p.implements(p.IConfigurer) p.implements(p.IActions) - p.implements(p.IClick) p.implements(p.IAuthFunctions) p.implements(ITransmute) @@ -25,11 +23,6 @@ def get_actions(self): """Registers a list of extension specific actions""" return get_actions() - # IClick - def get_commands(self): - """Registers a list of extension specific CLI commands""" - return get_commands() - # IAuthFunctions def get_auth_functions(self): """Registers a list of extension specific auth function""" diff --git a/ckanext/transmute/tests/test_plugin.py b/ckanext/transmute/tests/test_plugin.py deleted file mode 100644 index 1b28879..0000000 --- a/ckanext/transmute/tests/test_plugin.py +++ /dev/null @@ -1,54 +0,0 @@ -""" -Tests for plugin.py. - -Tests are written using the pytest library (https://docs.pytest.org), and you -should read the testing guidelines in the CKAN docs: -https://docs.ckan.org/en/2.9/contributing/testing.html - -To write tests for your extension you should install the pytest-ckan package: - - pip install pytest-ckan - -This will allow you to use CKAN specific fixtures on your tests. - -For instance, if your test involves database access you can use `clean_db` to -reset the database: - - import pytest - - from ckan.tests import factories - - @pytest.mark.usefixtures("clean_db") - def test_some_action(): - - dataset = factories.Dataset() - - # ... - -For functional tests that involve requests to the application, you can use the -`app` fixture: - - from ckan.plugins import toolkit - - def test_some_endpoint(app): - - url = toolkit.url_for('myblueprint.some_endpoint') - - response = app.get(url) - - assert response.status_code == 200 - - -To temporary patch the CKAN configuration for the duration of a test you can use: - - import pytest - - @pytest.mark.ckan_config("ckanext.myext.some_key", "some_value") - def test_some_action(): - pass -""" -import ckanext.transmute.plugin as plugin - - -def test_plugin(): - pass