Add automation scripts tests#586
Merged
khairahscorner merged 3 commits intoOct 7, 2025
Merged
Conversation
- Test name and description cleaning functions - Test host and speaker extraction logic - Test YAML string helpers (LiteralString, QuotedString, NoQuoteString) - Test event key generation and existing event loading
- Test successful image download and file creation - Test handling of network failures - Test directory creation when path does not exist - Test filename sanitization with special characters
- Test mentor sorting logic for available and unavailable mentors - Test availability update dictionary creation from XLSX - Test update_mentor_availability function end-to-end with XLSX and YAML - Cover edge cases: empty hours, mentors not in XLSX, preserving existing data
Contributor
|
Based in the test execution, which you can see from github actions, it all passing :) great work 👍 There some warnings and deprecations, but I think it is a great start! Thanks @TechGenie-awake |
dricazenck
approved these changes
Oct 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added comprehensive test coverage for automation scripts in the
toolsfolder:automation_prepare_adhoc_availability.py– Tests for mentor availability logic, including sorting, XLSX → YAML updates, and handling of missing or empty data.download_image.py– Tests for image download, filename sanitization, error handling, and automation script behavior.meetup_import.py– Tests for event parsing, description cleaning, host/speaker extraction, image URL fetching, and YAML processing.Change Type
Related Issue
resolves #579
Screenshots
Pull request checklist
Please check if your PR fulfills the following requirements: