Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Add Github Actions tests #120

Merged
merged 24 commits into from
Sep 26, 2023
Merged

Conversation

bellisk
Copy link
Contributor

@bellisk bellisk commented Sep 22, 2023

No description provided.

@bellisk bellisk force-pushed the tests/switch-to-github-actions-tests branch from c4303f8 to c6f9d54 Compare September 22, 2023 10:46
@@ -173,7 +173,7 @@ def xpath_get_rights_dict_form_rights_node(node):
if value_locale:
rights_dict[locale.lower()] = _clean_string(value_locale[0])
return rights_dict
except:
except Exception:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to log the exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, I'm not sure what kind of exception we could possibly be getting here. :-/ I don't think it's worth logging it, though, because when we use this rights dictionary, we actually only need it to have a valid rights name in one of the languages to get the correct rights id. (Here: https://github.com/opendata-swiss/ckanext-geocat/blob/master/ckanext/geocat/utils/csw_mapping.py#L399.)

@bellisk bellisk merged commit 68a49bb into master Sep 26, 2023
4 checks passed
@bellisk bellisk deleted the tests/switch-to-github-actions-tests branch September 26, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants