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

Add unit tests for AnimationLibrary. #98020

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EAinsley
Copy link
Contributor

@EAinsley EAinsley commented Oct 9, 2024

I'm working on adding the tests for AnimationPlayer, and noticed we don't have tests for AnimationLibrary yet. Just wrote one when I'm still studying the code.

Covered functions: is_valid_animation_name, is_valid_library_name,
validate_library_name, add_animation, remove_animation,
rename_animation, has_animation, get_animation and get_animation_list.

Covered signals: animation_added, animation_removed, animation_renamed
and animation_changed.
@AThousandShips
Copy link
Member

Please put the formatting fixes in a separate commit, as they are unrelated to the tests

@EAinsley
Copy link
Contributor Author

EAinsley commented Oct 9, 2024

Please put the formatting fixes in a separate commit, as they are unrelated to the tests

It's already in a separate commit?

@AThousandShips
Copy link
Member

AThousandShips commented Oct 9, 2024

*separate PR sorry

Should probably be handled in a larger set of fixes improving various cases, if it's considered appropriate, see:

@EAinsley
Copy link
Contributor Author

EAinsley commented Oct 9, 2024

*separate PR sorry

Should probably be handled in a larger set of fixes improving various cases, if it's considered appropriate, see:

Thank you for the information. I was just about to say that I felt the fix is too small to be a pr.

@EAinsley
Copy link
Contributor Author

EAinsley commented Oct 9, 2024

*separate PR sorry

Should probably be handled in a larger set of fixes improving various cases, if it's considered appropriate, see:

Should I squash the commit instead, since I have already fixed it when writing the test cases for that class?

@Repiteo Repiteo removed the request for review from a team October 12, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants