Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Nov 30, 2023
1 parent 677680d commit 4a11a2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckanext/datagovtheme/tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# get_login_url
################


@pytest.mark.ckan_config('ckanext.saml2auth.enable_ckan_internal_login', 'false')
def test_saml2_login_url():
""" test saml2 URL on Catalog-next """
Expand All @@ -30,6 +31,7 @@ def test_login_url():
# api_doc_url
##############


@mock.patch('ckanext.datagovtheme.helpers.h')
def test_api_doc_url(mock_ckan_lib_helpers):
mock_ckan_lib_helpers.lang.return_value = 'en'
Expand All @@ -43,6 +45,7 @@ def test_api_doc_url(mock_ckan_lib_helpers):
# get_bureau_info
##################


def assert_url(actual_url, expected_bureau_code):
# In CKAN 2.9, the url_for is returning a path ending in / which does not
# happen in 2.8. Include an optional ending / in the path, use URL encoded
Expand Down Expand Up @@ -121,6 +124,7 @@ def test_get_bureau_info_none():
# ngda
##################


def test_is_tagged_ngda():
"""Assert that package with ngda tag returns true."""
dataset_ngda = factories.Dataset(
Expand Down

0 comments on commit 4a11a2c

Please sign in to comment.