Skip to content

Conversation

rgalonso
Copy link
Contributor

When test_proces_diff processes test_new.diff, it creates the files that are referenced by the diff. If a file path contains a subdirectory, it fails to actually create the file, which in turn causes the test to fail. This PR cleans up test_new.diff such that no file is referenced within a subdirectory.

Updated number of expected passing tests to account for the additional tests which can run successfully now.

This is related to #266 and resolves the lingering issues that are referenced in comments there.

When test_proces_diff processes this file, it
fails to create the subdirectories, leading to
test failure. Since the subdirectories aren't
really needed, removing them allows the test
to complete successfully.

Updated number of expected passing tests to
account for the additional tests which can run
to completion now.
@rgalonso
Copy link
Contributor Author

@alstr, I think it's really important that the test_process_diff.py tests continue to be run. They exercise the logic of main.py's process_diff() which is otherwise not validated by the other tests.

@alstr alstr merged commit 24169f7 into alstr:master Apr 11, 2025
1 check passed
@alstr
Copy link
Owner

alstr commented Apr 11, 2025

@alstr, I think it's really important that the test_process_diff.py tests continue to be run. They exercise the logic of main.py's process_diff() which is otherwise not validated by the other tests.

Agreed, it was just a temporary fix to prevent the tests failing in the meantime. We will just need to bear in mind that any future additions will need to follow this format.

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