diff --git a/ckan/tests/legacy/functional/api/test_util.py b/ckan/tests/legacy/functional/api/test_util.py deleted file mode 100644 index eb99c38335a..00000000000 --- a/ckan/tests/legacy/functional/api/test_util.py +++ /dev/null @@ -1,41 +0,0 @@ -# encoding: utf-8 - -import pytest -from ckan import model -from ckan.lib.create_test_data import CreateTestData -from ckan.tests.legacy import TestController as ControllerTestCase -from ckan.tests.legacy import url_for - - -@pytest.fixture(autouse=True) -def initial_data(clean_db): - CreateTestData.create() - - -def test_munge_package_name(app): - response = app.get( - url=url_for(controller="api", action="munge_package_name", ver=2), - params={"name": "test name"}, - status=200, - ) - assert response.body == '"test-name"' - - -def test_munge_title_to_package_name(app): - response = app.get( - url=url_for( - controller="api", action="munge_title_to_package_name", ver=2 - ), - params={"name": "Test title"}, - status=200, - ) - assert response.body == '"test-title"' - - -def test_munge_tag(app): - response = app.get( - url=url_for(controller="api", action="munge_tag", ver=2), - params={"name": "Test subject"}, - status=200, - ) - assert response.body == '"test-subject"' diff --git a/ckan/tests/legacy/functional/test_error.py b/ckan/tests/legacy/functional/test_error.py deleted file mode 100644 index 5fc3b38b61b..00000000000 --- a/ckan/tests/legacy/functional/test_error.py +++ /dev/null @@ -1,7 +0,0 @@ -# encoding: utf-8 - - -def test_without_redirect(app): - # this is what a web bot might do - res = app.get("/error/document") - assert "There is no error." in str(res)