Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@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.

3 participants