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

defaults for mets_basename and mets_server_url #1156

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Conversation

kba
Copy link
Member

@kba kba commented Dec 14, 2023

As discussed in slub/mets-mods2tei#68, the cli.workspace.WorkspaceCtx class and Resolver.resolve_mets_arguments method now have defaults for mets_basename and mets_server_url.

Also, I replaced all hard-coded metx.xml with a constant DEFAULT_METS_BASENAME to avoid typos and make it easier to spot where we assume the default basename.

Copy link
Contributor

@MehmedGIT MehmedGIT left a comment

Choose a reason for hiding this comment

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

Looks good. I am just wondering if the mets.xml literals in test_workspace_bagger.py are intentional?

@kba
Copy link
Member Author

kba commented Dec 14, 2023

Looks good. I am just wondering if the mets.xml literals in test_workspace_bagger.py are intentional?

Good point, I did not change the tests because I think it makes sense to hardcode constants in tests, and also to make sure I noticed if any tests break. I think it's best to leave the tests as they are for now.

@kba kba merged commit 80a65ad into master Dec 14, 2023
2 checks passed
@kba kba deleted the mets-cli-options branch December 14, 2023 17:05
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