8000 fix: update create_asset function to handle id and metadata parameters by leodiegues · Pull Request #47 · FolhaSP/mosaico · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: update create_asset function to handle id and metadata parameters #47

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

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

leodiegues
Copy link
Collaborator

This pull request includes changes to the src/mosaico/assets/factory.py and tests/assets/test_factory.py files to improve the handling of asset parameters and enhance test coverage. The most important changes include adding support for additional parameters in asset creation and updating test cases to reflect these changes.

Enhancements to asset parameter handling:

  • src/mosaico/assets/factory.py: Added support for id and metadata parameters in the _merge_params_with_dict function to ensure they are included in the asset creation process.

Improvements to test coverage:

  • tests/assets/test_factory.py: Added new test cases for creating assets with path and updated the ids list to include more descriptive identifiers for the test cases.

Closes #46

@leodiegues leodiegues added the bug Something isn't working label Feb 12, 2025
@leodiegues leodiegues self-assigned this Feb 12, 2025
@leodiegues leodiegues merged commit 222aab6 into main Feb 12, 2025
10 checks passed
@leodiegues leodiegues deleted the leodiegues/issue46 branch February 12, 2025 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create_asset raises id validation error
1 participant
0