From d926335e183970c122c0a8cdb447ec3192b1eafb Mon Sep 17 00:00:00 2001 From: Jay Guo Date: Fri, 8 Nov 2024 17:08:30 -0500 Subject: [PATCH] Add test --- .../tests/opengov_custom_footer/test_custom_footer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ckanext/opendata_theme/tests/opengov_custom_footer/test_custom_footer.py b/ckanext/opendata_theme/tests/opengov_custom_footer/test_custom_footer.py index 082d97c4..2e3396c9 100644 --- a/ckanext/opendata_theme/tests/opengov_custom_footer/test_custom_footer.py +++ b/ckanext/opendata_theme/tests/opengov_custom_footer/test_custom_footer.py @@ -1,5 +1,6 @@ import pytest +from ckanext.opendata_theme.opengov_custom_footer.plugin import get_footer_script_snippet from ckanext.opendata_theme.tests.helpers import do_get, do_post CUSTOM_FOOTER_URL = "/ckan-admin/custom_footer" @@ -100,3 +101,7 @@ def test_reset_custom_footer_form_after_some_footer_modification(app): 'content_2': '' } check_custom_footer_page_html(reset_response, **expected_data) + + +def test_invalid_get_footer_script_snippet(): + assert get_footer_script_snippet() is False