Skip to content

Conversation

@Speedrunyourknowledge
Copy link
Owner

@Speedrunyourknowledge Speedrunyourknowledge commented Dec 2, 2025

Description

The unit test for the scan_directory function in Python was incomplete.
Specifically, the check_results_vs_expected_results function was missing from the test. This function is necessary for asserting that the program produces the expected results.

Implementation

I completed the unit test for scan_directory and added a tests_data/directory folder to be used with the unit test. I also deleted the previously added tests_data/scan_directory folder since it is not needed. Additionally, I updated the scan_directory function to output the scanned files in sorted order because Python's glob module does not guarantee a specific sort order.

How This Was Tested

I ran pytest to ensure all the tests pass, including the updated unit test.

@Speedrunyourknowledge Speedrunyourknowledge merged commit 08e047b into main Dec 2, 2025
95 checks passed
@Speedrunyourknowledge Speedrunyourknowledge deleted the fix/python-tests branch December 2, 2025 06:27
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